RedJandal
RedJandal

Reputation: 1213

Can I define Global Variables across Build Definitions in VSTS?

In VSTS it is possible to create variables per build definition as per the Microsoft documentation

https://www.visualstudio.com/en-us/docs/build/define/variables

Is it possible to define global variables that I can use across multiple build definitions?

Scenario:

I have a variable 'MyPassword' that is used in multiple definitions. If I want to change the value of 'MyPassword' I have to do it in each build definition rather than just in one global variable.

Upvotes: 4

Views: 4893

Answers (2)

Peter
Peter

Reputation: 27944

This feature is added to vsts.

Old awnser: This is no possible at this moment. It seems a nice feature. I'll user voice item for this.

uservoice: 14515326-project-level-build-release-variables

Upvotes: 4

Luis Diego Rojas
Luis Diego Rojas

Reputation: 202

Yes, you can using Variable Groups in the Release & Release/Library option enter link description here

Upvotes: -1

Related Questions