I am currently working on a Azure pipeline that grabs an artifact from another pipeline. Currently, there is a variable set called artifactBuildId that holds the build ID of the run the user would want to grab the artifact from. However, I would like to make it so that, if the variable is never set (so it would be empty), it defaults to grabbing the latest build of the pipeline. Any ideas of where to start with this?
I don’t have much experience with Azure pipelines. I was trying to understand how to grab the latest build. But doing it for a different pipeline, using an if-else statement, and setting a predefined variable didn’t make sense to me.
Sterling Chargois is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
1