Azure 管道接口
Azure pipeline interface
有没有办法使用 Azure 管道创建类似界面的表单,如下图所示
因此,每次我 运行 管道出现此表单时,都会让我为定义的字段选择值
我知道这个问题很含糊,但非常感谢任何对此的帮助
Is there a way to create a form like interface using Azure pipeline like the image shown below So that every time I run the pipeline this form comes up ad let me choose the values for the fields defined.
恐怕没有这样的方法可以创建一个表单到select的值。
但 Azure Pipeline 在 运行 时支持 selecting 值。
您可以使用 parameters
创建 select 离子列表。
这是一个例子:
parameters:
- name: image
displayName: Pool Image
type: string
default: ubuntu-latest
values:
- windows-latest
- vs2017-win2016
- ubuntu-latest
- ubuntu-16.04
- macOS-latest
- macOS-10.14
- name: test
displayName: Test for parameters
type: string
default: value1
values:
- value2
- value3
- value4
- value5
trigger: none
jobs:
- job: build
displayName: build
pool:
vmImage: ${{ parameters.image }}
steps:
- script: echo building $(Build.BuildNumber) with ${{ parameters.image }}
然后当您 运行 管道时,您将看到 select 离子列表。
顺便说一句,当你引用参数时,你可以使用以下格式:${{ parameters.parametername }}
这是关于 parameters 的文档。
希望对您有所帮助。
有没有办法使用 Azure 管道创建类似界面的表单,如下图所示 因此,每次我 运行 管道出现此表单时,都会让我为定义的字段选择值
我知道这个问题很含糊,但非常感谢任何对此的帮助
Is there a way to create a form like interface using Azure pipeline like the image shown below So that every time I run the pipeline this form comes up ad let me choose the values for the fields defined.
恐怕没有这样的方法可以创建一个表单到select的值。
但 Azure Pipeline 在 运行 时支持 selecting 值。
您可以使用 parameters
创建 select 离子列表。
这是一个例子:
parameters:
- name: image
displayName: Pool Image
type: string
default: ubuntu-latest
values:
- windows-latest
- vs2017-win2016
- ubuntu-latest
- ubuntu-16.04
- macOS-latest
- macOS-10.14
- name: test
displayName: Test for parameters
type: string
default: value1
values:
- value2
- value3
- value4
- value5
trigger: none
jobs:
- job: build
displayName: build
pool:
vmImage: ${{ parameters.image }}
steps:
- script: echo building $(Build.BuildNumber) with ${{ parameters.image }}
然后当您 运行 管道时,您将看到 select 离子列表。
顺便说一句,当你引用参数时,你可以使用以下格式:${{ parameters.parametername }}
这是关于 parameters 的文档。
希望对您有所帮助。