Reputation: 1671
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
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:
Task result:
Upvotes: 5