Home > Net >  Creating a label in Azure Devops pipeline
Creating a label in Azure Devops pipeline

Time:01-06

I would like to set a label on Azure Devops task, but not via the built-in label option as you can see on the attached photo.

How can I do it?

Thanks

enter image description here

CodePudding user response:

The tf.exe command is available on the build agent. Simply use a command-line script in your pipeline with the appropriate tf command.

- task: Cmdline@2
  inputs:
    script: 'tf label goodbuild docs /recursive'
  •  Tags:  
  • Related