-
Notifications
You must be signed in to change notification settings - Fork 868
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
[BUG]: YAML literal date variables are parsed as date #4530
Comments
Hi @qetza, thanks for reporting. Could you please check triple single quote as escape symbol as shown below:
|
Hi @ismayilov-ismayil, |
Hi @ismayilov-ismayil, |
Hi @qetza I encountered the same issue and was able to work around it by setting the variable type to secret, this caused the pipeline to treat it as a string literal rather than a date |
@ZackE4, thanks for the workaround. |
This issue has had no activity in 180 days. Please comment if it is not actually stale |
What happened?
Hi,
When defining variable values in YAML that that represents literal dates those values are always parsed as datetime instead of being left as strings so the value is not the one expected. This does not happen with variable group values.
Example of YAML build:
The variable group
issue-325
has the following variables:Here is the output of the task dumping the environment variables with the variable values:
As you can see only the variable from the variable group has kept it's original value all others were parsed as datetime even though the values are quoted or explicitly set as string.
This is making issues with the users of my task
replace tokens
(issues qetza/vsts-replacetokens-task#325 and qetza/vsts-replacetokens-task#176)Is there any way to force the string value (no parsing) or is this an issue in the agent when reading YAML variables?
Thanks
Versions
Azure DevOps Services
Environment type (Please select at least one enviroment where you face this issue)
Azure DevOps Server type
dev.azure.com (formerly visualstudio.com)
Azure DevOps Server Version (if applicable)
No response
Operation system
Ubuntu Latest
Version controll system
Azure Git Repository
Relevant log output
No response
The text was updated successfully, but these errors were encountered: