如何在天蓝色管道插件的选择框中使用自己的数据

问题描述 投票:0回答:1

    "dataSourceBindings": [
      {
        "target": "project",
        "endpointId": "$(FabrikamService)",
        "dataSourceName": "Fabfrikam Projects"
      }
    ]

images如何在选择框中将我们自己的数据用于动态获取的数据]

azure-devops azure-pipelines azure-pipelines-build-task azure-pipelines-release-task
1个回答
0
投票
如果我对您的理解正确,您是否正在尝试为

下载GitHub版本]任务。

如何使用自己的数据?

您可以尝试将自己的数据设置到环境变量,并在管道任务中引用它。

1,至set a variable in scripts,您可以参考以下示例

- powershell: echo "##vso[task.setvariable variable=repoName]variableValue"

2,要在管道编辑用户界面页面中设置变量,可以单击右上角的变量以添加变量。

enter image description here

3,在Yaml管道中使用varibles

variables: repoName: variableValue configuration: debug platform: x64

然后您可以在

Download GitHub Release

任务中引用这些变量,如下例。 - task: DownloadGitHubRelease@0 inputs: connection: 'mygithubconnection' userRepository: '$(repoName)' defaultVersionType: 'latest' downloadPath: '$(System.ArtifactsDirectory)'
如果上面的回答不能回答您的问题,请详细描述您的问题。
© www.soinside.com 2019 - 2024. All rights reserved.