Skip to content
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

fix(ci): Fix syntax in ADO variable use #18258

Merged
merged 2 commits into from
Nov 10, 2023
Merged

Conversation

alexvy86
Copy link
Contributor

@alexvy86 alexvy86 commented Nov 10, 2023

Description

We're using a mix of macro ($()) and template expression (variables['Build.Reason']) syntax in a variable use in an ADO pipeline task, which is resulting in all pipelines not printing the value of the variable and instead having a /mnt/vss/_work/_temp/<id>.sh: line 44: variables[Build.Reason]: command not found error. Example.

Luckily, where we use the variable functionally (not just printing its value for troubleshooting) we were already using template expression syntax, so things were working correctly, we just weren't getting the value printed.

Reviewer Guidance

The review process is outlined on this wiki page.

@alexvy86 alexvy86 requested a review from a team as a code owner November 10, 2023 22:19
@alexvy86 alexvy86 requested a review from a team November 10, 2023 22:19
@github-actions github-actions bot added area: build Build related issues base: main PRs targeted against main branch labels Nov 10, 2023
@alexvy86 alexvy86 enabled auto-merge (squash) November 10, 2023 23:20
@alexvy86 alexvy86 merged commit 84b4def into microsoft:main Nov 10, 2023
@alexvy86 alexvy86 deleted the fix-syntax branch November 10, 2023 23:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: build Build related issues base: main PRs targeted against main branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants