Submit build data
Update / insert builds data.
Builds are identified by the combination of pipelineId and buildNumber, and existing build data for the same build will be replaced if it exists and the updateSequenceNumber of the existing data is less than the incoming data.
Submissions are performed asynchronously. Submitted data will eventually be available in Jira; most updates are available within a short period of time, but may take some time during peak load and/or maintenance times. The getBuildByKey operation can be used to confirm that data has been stored successfully (if needed).
In the case of multiple builds being submitted in one request, each is validated individually prior to submission. Details of which build failed submission (if any) are available in the response object.
Request body
Example request
{
"properties": {
"accountId": "account-234",
"projectId": "project-123"
},
"builds": [
{
"schemaVersion": "1.0",
"pipelineId": "my-build-plan",
"buildNumber": 16,
"updateSequenceNumber": 1523494301448,
"displayName": "My Project build #16",
"description": "My Project build #16: Failed",
"state": "failed",
"lastUpdated": "2018-01-20T23:27:25.000Z",
"issueKeys": [
"ISSUE-123"
],
"associations": [
{
"associationType": "issueIdOrKeys",
"values": [
"ABC-123",
"ABC-456"
]
}
],
"testInfo": {
"totalNumber": 150,
"numberPassed": 145,
"numberFailed": 5
},
"references": [
{
"commit": {
"id": "08cd9c26b2b8d7cf6e6af6b49da8895d065c259f",
"repositoryUri": "https://bitbucket.org/atlassian/biij-vendor-api"
},
"ref": {
"name": "feature/ISSUE-123-some-work",
"uri": "https://bitbucket.org/atlassian/biij-vendor-api/refs/feature/ISSUE-123-some-work"
}
}
]
}
],
"providerMetadata": {
"product": "Bamboo 6.10.2"
}
}Response
Submission accepted. Each submitted build that is of a valid format will be eventually available in Jira.
Details of which builds were submitted and which failed submission (due to data format problems etc.) are available in the response object.
Example response
{
"acceptedBuilds": [
{
"pipelineId": "my-build-plan",
"buildNumber": 16
}
],
"rejectedBuilds": [
{
"key": {
"pipelineId": "my-build-plan",
"buildNumber": 16
}
}
],
"unknownIssueKeys": [
"ISSUE-123"
],
"unknownAssociations": [
{
"associationType": "issueIdOrKeys",
"values": [
"ABC-123",
"ABC-456"
]
}
]
}