Azure DevOps YAML Pipeline Parameters Not Working from REST API Trigger

后端 未结 3 1448
盖世英雄少女心
盖世英雄少女心 2021-02-16 00:08

I\'m trying to create a YAML based pipeline that takes a parameter, then trigger the pipeline to run from a Azure DevOps REST API. I\'m able to see the build gets queued, but th

3条回答
  •  遥遥无期
    2021-02-16 01:00

    Looks like the parameters are not necessary in this case, I merged the yaml into one like below.

    # File: azure-pipelines.yml
    trigger:
        - master
    
    steps:
        - script: echo $(testParam)
    
    

    Note the difference between $(testParam) and ${{ parameters.testParam }}.

    Then I trigger it from REST API and it works totally fine.

提交回复
热议问题