Enable exporting variables across jobs on Azure Pipelines#2012
Enable exporting variables across jobs on Azure Pipelines#2012asbjornu merged 1 commit intoGitTools:masterfrom
Conversation
|
Thank you for your contributions, @ravenpride! 🙏 |
|
Hmm testing this out I can't even get variables to go to next step: https://github.com/3shape/docker-ci/blob/azure-pipelines/azure-pipelines.yml |
|
Within a job, you do not need to specify the name of the task. The following should suffice: If you need to pass the variables across jobs (within the same stage), it gets a bit tricky. Then you need to declare a dependency to the job that contains the task publishing the desired output variables and the output variables in a more elaborate way: |
|
Thanks figured it out after reading the docs several time 😄 |
This PR tells Azure Pipelines to export GitVersion variables across jobs. Without it the variables are only usable from within the same job. For more information on variables at Azure Pipelines, please see the official documentation.