-
-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ReplaceTokens v6.0.4 doesn't pick up same env variables as v3,4,5 #20
Comments
Same when loading env variables:
Doesn't work:
Error:
Seems as the only option you are allowing is the |
Hi @joaquin386, If you cannot change the name of your tokens you have the following options:
|
Hi, Thanks for the explanation!!! Most likely we will be using v5 as I do not know how many |
I'll keep it open as a reminder for me to update the README of v6 to make it clearer that the task is now using the real variable names (the names defined in variables, variable groups and the default variables in the MS documentation) and doesn't support anymore the normalized names done by MS internally. |
Note that for a variables with the name The difference is on how the task is getting the values using the MS lib
|
Hi @joaquin386, |
Thats amazing, thanks for the patch release. Will test it next week and let you know the result |
It works as expected version 6.0.5. Thanks for the fix. |
Hi,
I have realise on the AzureDevOps Tasks 6.0.4 that if you try to replace a ADO Env Variable like BUILD_DEFINITONNAME it fails in v6 but not in v5,4,3 so making it backwards incompatible.
v6:
##[warning]variable 'BUILD_DEFINITIONNAME' not found
BUILD_DEFINITIONNAME:
v5:
BUILD_DEFINITIONNAME: dal-appmesh-test
if I put it in the file as BUILD.DEFINITIONNAME works in both versions.
I realize that before running the replacetokens in v6 there is a step load variables
Env variables when I bash into the agents with an
env
:BUILD_DEFINITIONNAME=dal-appmesh-test
So is there something missing from my end or just that this is a behaviour change which is uncompatible from what we have as we have in ALL our repos the BUILD_DEFINITIONNAME not the . (and can not replace _ for . as there might be legitimate custom env variables with _)
Screenshot v6:
Screenshot v5:
Env variable after executing env in the agent:
BR
Joaquin
The text was updated successfully, but these errors were encountered: