简体   繁体   中英

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

在此处输入图像描述

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'

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM