0
votes

I am trying to create a Releasing stage that is meant to download 3 different build artifacts from 3 different pipelines in a project and deploy them on a target machine. When I create a release and deploy it on the target machine, the very first download build artifact task works fine but none of the following ones and I see the following error

"Artifact [buildnumber] not found for build [buildId]. Please ensure you have published artifacts in any previous phases of the current build."

Has anyone else seen this error or know why I am getting this error?

Screenshot of error message

Thank

1

1 Answers

0
votes

If you want to use Download Build Artifacts task to download different build artifacts from different pipelines, please select the “Specific build” option to find that particular artifact, as below. enter image description here

If you use the default value: Current build, of course this task cannot find other build artifacts from other build pipelines. And then you will encounter this issue.

In addition, the new release will automatically download artifacts in below pre-defined “Download Artifacts” step. enter image description here Therefore, you could just add these 3 artifacts in release pipeline, and then you don’t need to use additional Download Build Artifacts task to download these artifacts. See: Release artifacts and artifact sources for details. enter image description here