I am pushing some build events to compass using postman. I followed the REST API guide and send the build events to compass. It doesn’t have the correct icon and the build success rate is wrong. The following curl command is used to send the build events to compass. (I put dummy values for privacy reasons) but the data are all correct and I don’t get any errors.
curl --request POST --url 'https://mydomain.atlassian.net/gateway/api/compass/v1/events'
--user 'xxx@xxx.com-Token'
--header 'Content-Type: application/json'
--data '{
"cloudId": "xxxx",
"event": {
"build": {
"displayName": "buildEvent",
"lastUpdated": "2023-11-21T00:45:53.3394497+00:00",
"updateSequenceNumber": 1,
"description": "Merge pull request",
"url": "https://abcdefg.com/hijk",
"externalEventSourceId": "0000",
"buildProperties": {
"state": "SUCCESSFUL",
"pipeline": {
"pipelineId": "123456"
},
"startedAt": "2023-11-21T00:45:36.0000000+00:00"
}
}
}'
3 posts - 2 participants