将变量从github操作触发器传递到Azure DevOps发布管道



我正试图通过GitHub操作触发ADO中的发布管道。在触发时,我将一些变量传递给发布管道,但这些变量没有分配给管道。

我在GitActions中使用的以下命令

- name: Azure Pipelines Action
uses: Azure/pipelines@v1
with:
azure-devops-project-url: https://dev.azure.com/XXXXX
azure-pipeline-name: 'XXXXX'
azure-devops-token: ${{ XXXX }}
azure-pipeline-variables:  '{"regionCode": "DL"}' 

在Release管道中,我在arguments部分给出-regionCode$(regionCode(,以获取变量值

它们很可能是运行时变量,而不是管道参数。它们将在YAML中使用运行时变量语法$[variables['regionCode']]访问,而不是使用参数语法${{ parameters['regionCode']}}或编译时变量语法${{variables['regionCode']}}

最新更新