Closed lankaapura closed 5 years ago
Sorry you're having problems! So based on the above, it sounds like you aren't seeing % module_name%
and %project_path%
set correctly in your build steps?
yes, that's correct. I want to override module_name
and project_path
Sorry, I'm still not quite understanding! How are you wanting to override those values? I can just see them defined in the top-level env, which means they should be available to access in your build steps!
@lox seems this is already reported in https://github.com/buildkite/agent/issues/471 and fixed in https://github.com/buildkite/agent/releases/tag/v3.0-beta.34
Do you have an ETA for v3 final release?
Ah-hah! Sorry I missed the env entries in the individual blocks. I will double check that this is indeed fixed in the v3 agent.
We are hoping to have a final release for the v3 agent either this month or next!
cool. Thanks 👍
Any plans to fix this issue for 2.6? We don't have plans to update our agent to 3.0 yet since its still in beta.
@lankaapura 👋 sorry for the super long delay on following up on this! Just wanted to give you a heads up that our new YAML defined steps in the Buildkite UI gear fixes the precedence: https://forum.buildkite.community/t/defining-pipeline-build-steps-with-yaml/79
If you switch your pipelines to this format, it will fix that precedence logic to support your use case.
Let me know if you've got any follow up!
I use .buildkite/pipeline.yml
in my repo and see the same issue on agent v3.22.1
I have a windows buildkite agent configured to upload steps as per documentation. However, it seems that overriding environment variables don't work with it. But it works fine if I defined same steps on the portal without uploading thru the agent.