Display Build information in Jira Connect App
We need to pass build information to the Connect API.
Open questions
Release of this feature will require clients to update their JiraConnect apps. Can we inform them directly that this is needed? How should we do that (email, in app banner)?
Should this feature be optional?
Resources
- Build module overview: https://developer.atlassian.com/cloud/jira/software/modules/build/
- API Docs: https://developer.atlassian.com/cloud/jira/software/rest/api-group-builds/#api-builds-0-1-bulk-post
Example payload to send
curl --request POST \
--url 'https://your-domain.atlassian.net/rest/builds/0.1/bulk' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data '{
"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",
"label": "<string>",
"url": "<string>",
"state": "failed",
"lastUpdated": "2018-01-20T23:27:25.000Z",
"issueKeys": [
"ISSUE-123"
],
"testInfo": {
"totalNumber": 150,
"numberPassed": 145,
"numberFailed": 5,
"numberSkipped": 0
},
"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"
}
}'
Original issue
It would be great to see the type of CI integration that exists in Jira and Bamboo [https://www.atlassian.com/software/bamboo], but with GitLab. I currently have commit associations using FishEye, but a plugin or some type of integration to see build statuses per commit within JIRA would be fantastic.
Edited by Alex Kalderimis