It appears that to be able to run a AZ release pipeline with a specific build, we need to be using "--artifact-metadata-list" CLI parameter. However, its usage seems unclear even after looking thru several issues related to that topic (see referenced list below). If I just kick off the release with
az pipelines release create --definition-id YY --description "Desc" --open
it does the right thing of picking the latest build (which happens to be 20210421_3_237993) and I get the following json output (showing only the 'artifacts' node')
However, if i want to target the specific build verion 20210421_3_237993 (say it was a build in past) created using a build definition id NNN on release id YY (which has name ZZZ) and I use the commands, it does not pick up that build:
It appears that to be able to run a AZ release pipeline with a specific build, we need to be using "--artifact-metadata-list" CLI parameter. However, its usage seems unclear even after looking thru several issues related to that topic (see referenced list below). If I just kick off the release with
az pipelines release create --definition-id YY --description "Desc" --open
it does the right thing of picking the latest build (which happens to be 20210421_3_237993) and I get the following json output (showing only the 'artifacts' node')However, if i want to target the specific build verion 20210421_3_237993 (say it was a build in past) created using a build definition id NNN on release id YY (which has name ZZZ) and I use the commands, it does not pick up that build:
What am I missing?
References: