Igor Kondrasovas
Igor Kondrasovas

Reputation: 1671

Predefined variables in previous Azure Pipeline Build

How can I get the predefined variables used in a past Azure pipeline build.

When I navigate to this build I can see the logs, many information but not the actual values of the predefined variables by the time of that build.

I managed to see the queued time variables, but there is only three: BuildConfiguration, BuildPlatform and system.debug.

For example, how could I check what was the Build.DefinitionName or Build.BuildNumber used in that particular build?

Upvotes: 2

Views: 559

Answers (1)

Shayki Abramczyk
Shayki Abramczyk

Reputation: 41545

You can add a Command Line task and just put one command (in the "Script" field): set, so this task will print all the environment variables during the build and you can see them in the logs every time.

Task configuration:

enter image description here

Task result:

enter image description here

Upvotes: 5

Related Questions