NST111
NST111

Reputation: 55

Creating a label in Azure Devops pipeline

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

Upvotes: 0

Views: 1522

Answers (1)

bryanbcook
bryanbcook

Reputation: 18303

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'

Upvotes: 1

Related Questions