Azure-devops-docs: Setting variables belong to group at queue time

Created on 22 Mar 2018  Â·  7Comments  Â·  Source: MicrosoftDocs/azure-devops-docs

Can variables in variable group be settable at queue time, as regular varibales can?


Document Details

⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

All 7 comments

Thanks you for your feedback. I have passed your question to the product team and will let you know their response.

Setting the value of variables in a variable group at build queue time is not supported at the moment.

This is really a required feature. I have the following use case:
1) An Angular app generated and build using Angular CLI. It supports different target environments (dev/test/production).
2) The build step for Angular application requires a target environment at the build time i.e. ng build -dev -e {dev/test/prod}
3) Now, i want to use the same build definition to build and deploy to any environment. I can specify the environment at build queue time (i.e. ng build -dev -e $(build.environment}) but i can't use the same release definition to deploy this build to different target environments.
4) I need to share the build target variable between a build and release definition, so i can set it at queue time while starting a build and this variable can be picked up by a release definition that can deploy it to either dev or test environment depending on this variable value.

I agree this would be a very useful feature.

@alexhomer1 I'm disappointed to see GitHub Issues turning into a customer support forum. You shouldn't be "passing questions to the product team", the product team should be looking at these issues directly. And you can't just close an Issue by saying "this is not supported at the moment" because by definition that means that the Issue is not closed! Please re-open this Issue and close it only if:

  1. A separate Issue is opened in a more appropriate, non-documentation repo
  2. The "product team" decides that they will not be implementing this feature and provide _their_ reasoning
  3. We are actually able to set variable-group-variables at queue time

+1 to the above, this should be kept open.

I don't know of a date for the feature to be introduced, or even whether it is planned. As mentioned in the documentation, there is a specific site for feature requests and development progress: https://visualstudio.uservoice.com/forums/330519-team-services. Please post your requests there for consideration by the product team as part of future development. Thank you!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

MJECloud picture MJECloud  Â·  3Comments

atrauzzi picture atrauzzi  Â·  3Comments

sevaa picture sevaa  Â·  3Comments

csutorasr picture csutorasr  Â·  3Comments

EM1L picture EM1L  Â·  3Comments