JetBrains/teamcity-rest-client

Add artifact-dependencies to runBuild

jonathw-git opened this issue · 0 comments

Similar to snapshot-dependencies (a22882c) it would be nice to be able to trigger a build and provide artifact-dependencies as well.

I have jobA that has a dependency of jobB.

jobB requires an artifact that is produced in jobA. In the TC UI I can go to jobB and select the buildId of jobA.

I can also trigger the job using a POST request:
POST /app/rest/buildQueue

{
    "buildType": {
        "id": "jobB"
    },
    "snapshot-dependencies": {
        "count": 1,
        "build": [
            {
                "id": jobA_id
            }
        ]
    },
    "artifact-dependencies": {
        "count": 1,
        "build": [
            {
                "id": jobA_id
            }
        ]
    },
    "properties": {
    	"property": [ 
            {
                "name": "propertyA",
                "value": "true"
            }
    	]
    }
}