Dave New
Dave New

Reputation: 40002

VSTS: Using $(BuildID) as an argument in a build step

I want to provide the build ID as an argument to some script in my build:

BuildID

But this does not parse into the build's ID. Instead it is used literally. See output:

dotnet publish -c Release -o C:\agent\_work\50\a\MyProject.Api --version-suffix $(BuildID)

Why is this?

Upvotes: 2

Views: 1839

Answers (1)

Eddie Chen - MSFT
Eddie Chen - MSFT

Reputation: 29958

Use this format: $(Build.BuildId)

Upvotes: 7

Related Questions