Skip to content

Add artifact-dependencies to runBuild #110

@jonathw-git

Description

@jonathw-git

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"
            }
    	]
    }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions