How to Increase/Update Variable Group value using Azure Devops Build Definition?

后端 未结 3 680
既然无缘
既然无缘 2020-12-02 00:32

Am working on Azure Devops CI&CD. Here, my release name must be in Version number using tags. Am getting this with the help of Variable Groups, by adding tags and value

3条回答
  •  盖世英雄少女心
    2020-12-02 01:12

    I used this task to update the value of my variables inside my group.

    Shared variable updater (preview)

    Dont forget to set those settings :

    1. Requires 'Allow scripts to access the OAuth token' in agent job additional options

    2. Set administrator role to 'Project Collection Build Service' in the variable group.

    In case of using a YAML pipeline

    When using a YAML pipeline, the OAuth token is automatically added (no need for step 1 above), but requires a bit of work to make accessible for the powershell script. Use the guidance here to be able to use the token.

提交回复
热议问题