-1

In my release pipeline having Two artifacts.

Build
Tests

Artifacts

While selecting files under artifact I am using "Release.PrimaryArtifactSourceAlias" and accessing the Build artifact files. but is there any variable we can use to access files under Test artifact.

I have tried with "Release.TriggeringArtifact.Alias" but in Documentation only mentioned that for scheduled and manual releases this value will be empty.

Coder
  • 49
  • 6
  • Did you refer to the documentation? https://learn.microsoft.com/en-us/azure/devops/pipelines/release/variables?view=azure-devops&tabs=batch#general-artifact – Daniel Mann Jul 28 '22 at 14:32

1 Answers1

0

I am afraid that there is no Release Pipeline predefined variable to get the value of the required artifacts Source Alias(Name: Tests).

For a workaround, you can check the sources alias of the artifacts.

enter image description here

Then you can manually set the variable in Release Pipeline.

enter image description here

Then you can use the variable in Release Pipeline.

Kevin Lu-MSFT
  • 20,786
  • 3
  • 19
  • 28