1
votes

In TeamCity it is very easy to see the runtime values of all parameters used by (or more correctly: available to) the build, with those parameters actual values at the time of the build.

Azure DevOps build pipelines also use parameters (they call them variables). But how can I see what the values of those variables were during the build?

For example, my build pipeline defines a variable called $(agent.builddirectory). HOw can I see what that variable resolved to?

1

1 Answers

0
votes

Edit your pipeline and add one of the following tasks

  1. You can use a Bash task (requires Bash on the agent) with
Type = Inline
Script = env | sort
  1. For Windows agents only, you can use a Command Line task with
Tool = cmd.exe
Arguments = /k set