Azure REST API for running builds or pipelines

后端 未结 1 1911
后悔当初
后悔当初 2021-01-19 18:21

I am trying to automate the creation of Azure Pipelines for a particular branch using their REST api.

However, I am struggling to use almost all their API\'s, as thei

相关标签:
1条回答
  • 2021-01-19 18:31

    I believe you cannot pass runtime parameters trough the Queue API. Instead, use Runs API

    With that, your request body (use Content-type: application/json) should look something similar to this:

    {
        "resources": {
            "repositories": {
                "self": {
                    "refName": "refs/heads/feature/my-pipeline"
                }
            }
        },
        "templateParameters": {
            "appId": "bab"
            "platform": "android"
            "isDemo": true
        }
    }
    
    0 讨论(0)
提交回复
热议问题