0
votes

_CI_Dev atfifact when build branch is B1How to use multiple artifacts targeting different branches to run on single stage in devops? Will artifact filters work if it is included with specific branch so that only those artifacts will be picked up? The reason to use single stage is because the tasks are common across branches

Similarly, _CI_QA artifact when build branch is B2.

So, all artifact filters are added in single pre-deployment condition and only those need to be picked which matches build branch

1
I'm no sure what you mean. Do you want to use at the same time artifacts from different branches? Do you have some code? Can you share?Krzysztof Madej
yes, I want to use artifacts from different branches at same timeuser3441903
Sorry, to be sure. The same artifact but from different branches? Or different artifacts from different branches? Artifacts are produced by the one pipeline, right?Krzysztof Madej
Yes, different artifact from different branches. Each artifact is produced by one pipeline onlyuser3441903
And you use classic releases right?Krzysztof Madej

1 Answers

0
votes

What you need is two artifacts definitions linked actually to the same pipeline/build

enter image description here

First:

enter image description here

And Second:

enter image description here

Then artifact filter per each artifact (step optional - if you want to have automatic releases)

enter image description here

enter image description here

Then on job definition you need to define what artifact you want to get:

enter image description here

Here you define what version of artifact should be taken:

enter image description here

enter image description here

Another approach is actually to use download artifact step:

enter image description here

enter image description here