Hi @ibuchanan
I’m using the same sendEvent
code that I found in the Gitlab example, here that includes error handling
The batches below are received by a custom webtrigger. This web trigger maps the incoming CompassEventInput
list to CompassCreateEventInput
by adding the cloudId
.
And I’m sending these 3 batches:
{
"events": [
{
"build": {
"buildProperties": {
"completedAt": "2023-10-30T15:42:26.577Z",
"pipeline": {
"displayName": "feature - TES-1",
"pipelineId": "6b94d163181c486588f8d890782bbaab",
"url": "http://localhost:8081/job/feature%20-%20TES-1/"
},
"startedAt": "2023-10-30T15:42:26.185Z",
"state": "SUCCESSFUL"
},
"description": "feature - TES-1 #2",
"displayName": "feature - TES-1 #2",
"externalEventSourceId": "6b94d163181c486588f8d890782bbaab",
"lastUpdated": "2023-10-30T15:42:26.185Z",
"updateSequenceNumber": 1698680546185,
"url": "http://localhost:8081/job/feature%20-%20TES-1/2/"
}
},
{
"build": {
"buildProperties": {
"completedAt": "2023-11-02T14:25:38.392Z",
"pipeline": {
"displayName": "feature - TES-1",
"pipelineId": "6b94d163181c486588f8d890782bbaab",
"url": "http://localhost:8081/job/feature%20-%20TES-1/"
},
"startedAt": "2023-11-02T14:25:37.692Z",
"state": "SUCCESSFUL"
},
"description": "feature - TES-1 #3",
"displayName": "feature - TES-1 #3",
"externalEventSourceId": "6b94d163181c486588f8d890782bbaab",
"lastUpdated": "2023-11-02T14:25:37.692Z",
"updateSequenceNumber": 1698935137692,
"url": "http://localhost:8081/job/feature%20-%20TES-1/3/"
}
},
{
"build": {
"buildProperties": {
"completedAt": "2023-10-30T15:41:00.71Z",
"pipeline": {
"displayName": "feature - TES-1",
"pipelineId": "6b94d163181c486588f8d890782bbaab",
"url": "http://localhost:8081/job/feature%20-%20TES-1/"
},
"startedAt": "2023-10-30T15:41:00.246Z",
"state": "SUCCESSFUL"
},
"description": "feature - TES-1 #1",
"displayName": "feature - TES-1 #1",
"externalEventSourceId": "6b94d163181c486588f8d890782bbaab",
"lastUpdated": "2023-10-30T15:41:00.246Z",
"updateSequenceNumber": 1698680460246,
"url": "http://localhost:8081/job/feature%20-%20TES-1/1/"
}
}
]
}
{
"events": [
{
"build": {
"buildProperties": {
"completedAt": "2024-01-29T19:06:49.361Z",
"pipeline": {
"displayName": "feature - TES-1",
"pipelineId": "6b94d163181c486588f8d890782bbaab",
"url": "http://localhost:8081/job/feature%20-%20TES-1/"
},
"startedAt": "2024-01-29T19:06:48.863Z",
"state": "SUCCESSFUL"
},
"description": "feature - TES-1 #8",
"displayName": "feature - TES-1 #8",
"externalEventSourceId": "6b94d163181c486588f8d890782bbaab",
"lastUpdated": "2024-01-29T19:06:48.863Z",
"updateSequenceNumber": 1706555208863,
"url": "http://localhost:8081/job/feature%20-%20TES-1/8/"
}
},
{
"build": {
"buildProperties": {
"completedAt": "2024-06-19T07:28:13.854Z",
"pipeline": {
"displayName": "feature - TES-1",
"pipelineId": "6b94d163181c486588f8d890782bbaab",
"url": "http://localhost:8081/job/feature%20-%20TES-1/"
},
"startedAt": "2024-06-19T07:28:13.61Z",
"state": "SUCCESSFUL"
},
"description": "feature - TES-1 #11",
"displayName": "feature - TES-1 #11",
"externalEventSourceId": "6b94d163181c486588f8d890782bbaab",
"lastUpdated": "2024-06-19T07:28:13.61Z",
"updateSequenceNumber": 1718782093610,
"url": "http://localhost:8081/job/feature%20-%20TES-1/11/"
}
},
{
"build": {
"buildProperties": {
"completedAt": "2024-06-18T22:29:24.911Z",
"pipeline": {
"displayName": "feature - TES-1",
"pipelineId": "6b94d163181c486588f8d890782bbaab",
"url": "http://localhost:8081/job/feature%20-%20TES-1/"
},
"startedAt": "2024-06-18T22:29:24.722Z",
"state": "SUCCESSFUL"
},
"description": "feature - TES-1 #10",
"displayName": "feature - TES-1 #10",
"externalEventSourceId": "6b94d163181c486588f8d890782bbaab",
"lastUpdated": "2024-06-18T22:29:24.722Z",
"updateSequenceNumber": 1718749764722,
"url": "http://localhost:8081/job/feature%20-%20TES-1/10/"
}
},
{
"build": {
"buildProperties": {
"completedAt": "2024-06-19T17:43:34.266Z",
"pipeline": {
"displayName": "feature - TES-1",
"pipelineId": "6b94d163181c486588f8d890782bbaab",
"url": "http://localhost:8081/job/feature%20-%20TES-1/"
},
"startedAt": "2024-06-19T17:43:34.081Z",
"state": "SUCCESSFUL"
},
"description": "feature - TES-1 #12",
"displayName": "feature - TES-1 #12",
"externalEventSourceId": "6b94d163181c486588f8d890782bbaab",
"lastUpdated": "2024-06-19T17:43:34.081Z",
"updateSequenceNumber": 1718819014081,
"url": "http://localhost:8081/job/feature%20-%20TES-1/12/"
}
},
{
"build": {
"buildProperties": {
"completedAt": "2023-11-02T14:27:35.821Z",
"pipeline": {
"displayName": "feature - TES-1",
"pipelineId": "6b94d163181c486588f8d890782bbaab",
"url": "http://localhost:8081/job/feature%20-%20TES-1/"
},
"startedAt": "2023-11-02T14:27:35.24Z",
"state": "SUCCESSFUL"
},
"description": "feature - TES-1 #4",
"displayName": "feature - TES-1 #4",
"externalEventSourceId": "6b94d163181c486588f8d890782bbaab",
"lastUpdated": "2023-11-02T14:27:35.24Z",
"updateSequenceNumber": 1698935255240,
"url": "http://localhost:8081/job/feature%20-%20TES-1/4/"
}
},
{
"build": {
"buildProperties": {
"completedAt": "2024-01-17T13:14:43.813Z",
"pipeline": {
"displayName": "feature - TES-1",
"pipelineId": "6b94d163181c486588f8d890782bbaab",
"url": "http://localhost:8081/job/feature%20-%20TES-1/"
},
"startedAt": "2024-01-17T13:14:43.246Z",
"state": "SUCCESSFUL"
},
"description": "feature - TES-1 #7",
"displayName": "feature - TES-1 #7",
"externalEventSourceId": "6b94d163181c486588f8d890782bbaab",
"lastUpdated": "2024-01-17T13:14:43.246Z",
"updateSequenceNumber": 1705497283246,
"url": "http://localhost:8081/job/feature%20-%20TES-1/7/"
}
},
{
"build": {
"buildProperties": {
"completedAt": "2024-01-16T09:03:08.226Z",
"pipeline": {
"displayName": "feature - TES-1",
"pipelineId": "6b94d163181c486588f8d890782bbaab",
"url": "http://localhost:8081/job/feature%20-%20TES-1/"
},
"startedAt": "2024-01-16T09:03:07.399Z",
"state": "SUCCESSFUL"
},
"description": "feature - TES-1 #5",
"displayName": "feature - TES-1 #5",
"externalEventSourceId": "6b94d163181c486588f8d890782bbaab",
"lastUpdated": "2024-01-16T09:03:07.399Z",
"updateSequenceNumber": 1705395787399,
"url": "http://localhost:8081/job/feature%20-%20TES-1/5/"
}
},
{
"build": {
"buildProperties": {
"completedAt": "2024-01-16T09:09:31.615Z",
"pipeline": {
"displayName": "feature - TES-1",
"pipelineId": "6b94d163181c486588f8d890782bbaab",
"url": "http://localhost:8081/job/feature%20-%20TES-1/"
},
"startedAt": "2024-01-16T09:09:31.202Z",
"state": "SUCCESSFUL"
},
"description": "feature - TES-1 #6",
"displayName": "feature - TES-1 #6",
"externalEventSourceId": "6b94d163181c486588f8d890782bbaab",
"lastUpdated": "2024-01-16T09:09:31.202Z",
"updateSequenceNumber": 1705396171202,
"url": "http://localhost:8081/job/feature%20-%20TES-1/6/"
}
},
{
"build": {
"buildProperties": {
"completedAt": "2024-06-18T20:45:15.846Z",
"pipeline": {
"displayName": "feature - TES-1",
"pipelineId": "6b94d163181c486588f8d890782bbaab",
"url": "http://localhost:8081/job/feature%20-%20TES-1/"
},
"startedAt": "2024-06-18T20:45:15.135Z",
"state": "SUCCESSFUL"
},
"description": "feature - TES-1 #9",
"displayName": "feature - TES-1 #9",
"externalEventSourceId": "6b94d163181c486588f8d890782bbaab",
"lastUpdated": "2024-06-18T20:45:15.135Z",
"updateSequenceNumber": 1718743515135,
"url": "http://localhost:8081/job/feature%20-%20TES-1/9/"
}
},
{
"build": {
"buildProperties": {
"completedAt": "2024-06-19T19:19:20.627Z",
"pipeline": {
"displayName": "feature - TES-1",
"pipelineId": "6b94d163181c486588f8d890782bbaab",
"url": "http://localhost:8081/job/feature%20-%20TES-1/"
},
"startedAt": "2024-06-19T19:19:20.521Z",
"state": "SUCCESSFUL"
},
"description": "feature - TES-1 #13",
"displayName": "feature - TES-1 #13",
"externalEventSourceId": "6b94d163181c486588f8d890782bbaab",
"lastUpdated": "2024-06-19T19:19:20.521Z",
"updateSequenceNumber": 1718824760521,
"url": "http://localhost:8081/job/feature%20-%20TES-1/13/"
}
}
]
}
{
"events": [
{
"build": {
"buildProperties": {
"completedAt": "2024-06-26T20:34:53.242Z",
"pipeline": {
"displayName": "feature - TES-1",
"pipelineId": "6b94d163181c486588f8d890782bbaab",
"url": "http://localhost:8081/job/feature%20-%20TES-1/"
},
"startedAt": "2024-06-26T20:34:52.926Z",
"state": "SUCCESSFUL"
},
"description": "feature - TES-1 #20",
"displayName": "feature - TES-1 #20",
"externalEventSourceId": "6b94d163181c486588f8d890782bbaab",
"lastUpdated": "2024-06-26T20:34:52.926Z",
"updateSequenceNumber": 1719434092926,
"url": "http://localhost:8081/job/feature%20-%20TES-1/20/"
}
},
{
"build": {
"buildProperties": {
"completedAt": "2024-06-26T17:41:27.131Z",
"pipeline": {
"displayName": "feature - TES-1",
"pipelineId": "6b94d163181c486588f8d890782bbaab",
"url": "http://localhost:8081/job/feature%20-%20TES-1/"
},
"startedAt": "2024-06-26T17:41:26.85Z",
"state": "SUCCESSFUL"
},
"description": "feature - TES-1 #15",
"displayName": "feature - TES-1 #15",
"externalEventSourceId": "6b94d163181c486588f8d890782bbaab",
"lastUpdated": "2024-06-26T17:41:26.85Z",
"updateSequenceNumber": 1719423686850,
"url": "http://localhost:8081/job/feature%20-%20TES-1/15/"
}
},
{
"build": {
"buildProperties": {
"completedAt": "2024-06-26T17:46:13.817Z",
"pipeline": {
"displayName": "feature - TES-1",
"pipelineId": "6b94d163181c486588f8d890782bbaab",
"url": "http://localhost:8081/job/feature%20-%20TES-1/"
},
"startedAt": "2024-06-26T17:46:13.53Z",
"state": "SUCCESSFUL"
},
"description": "feature - TES-1 #16",
"displayName": "feature - TES-1 #16",
"externalEventSourceId": "6b94d163181c486588f8d890782bbaab",
"lastUpdated": "2024-06-26T17:46:13.53Z",
"updateSequenceNumber": 1719423973530,
"url": "http://localhost:8081/job/feature%20-%20TES-1/16/"
}
},
{
"build": {
"buildProperties": {
"completedAt": "2024-06-26T20:15:20.341Z",
"pipeline": {
"displayName": "feature - TES-1",
"pipelineId": "6b94d163181c486588f8d890782bbaab",
"url": "http://localhost:8081/job/feature%20-%20TES-1/"
},
"startedAt": "2024-06-26T20:15:19.986Z",
"state": "SUCCESSFUL"
},
"description": "feature - TES-1 #19",
"displayName": "feature - TES-1 #19",
"externalEventSourceId": "6b94d163181c486588f8d890782bbaab",
"lastUpdated": "2024-06-26T20:15:19.986Z",
"updateSequenceNumber": 1719432919986,
"url": "http://localhost:8081/job/feature%20-%20TES-1/19/"
}
},
{
"build": {
"buildProperties": {
"completedAt": "2024-06-27T13:50:08.226Z",
"pipeline": {
"displayName": "feature - TES-1",
"pipelineId": "6b94d163181c486588f8d890782bbaab",
"url": "http://localhost:8081/job/feature%20-%20TES-1/"
},
"startedAt": "2024-06-27T13:50:07.933Z",
"state": "SUCCESSFUL"
},
"description": "feature - TES-1 #23",
"displayName": "feature - TES-1 #23",
"externalEventSourceId": "6b94d163181c486588f8d890782bbaab",
"lastUpdated": "2024-06-27T13:50:07.933Z",
"updateSequenceNumber": 1719496207933,
"url": "http://localhost:8081/job/feature%20-%20TES-1/23/"
}
},
{
"build": {
"buildProperties": {
"completedAt": "2024-06-26T17:56:09.628Z",
"pipeline": {
"displayName": "feature - TES-1",
"pipelineId": "6b94d163181c486588f8d890782bbaab",
"url": "http://localhost:8081/job/feature%20-%20TES-1/"
},
"startedAt": "2024-06-26T17:56:09.345Z",
"state": "SUCCESSFUL"
},
"description": "feature - TES-1 #18",
"displayName": "feature - TES-1 #18",
"externalEventSourceId": "6b94d163181c486588f8d890782bbaab",
"lastUpdated": "2024-06-26T17:56:09.345Z",
"updateSequenceNumber": 1719424569345,
"url": "http://localhost:8081/job/feature%20-%20TES-1/18/"
}
},
{
"build": {
"buildProperties": {
"completedAt": "2024-06-26T21:05:08.03Z",
"pipeline": {
"displayName": "feature - TES-1",
"pipelineId": "6b94d163181c486588f8d890782bbaab",
"url": "http://localhost:8081/job/feature%20-%20TES-1/"
},
"startedAt": "2024-06-26T21:05:07.749Z",
"state": "SUCCESSFUL"
},
"description": "feature - TES-1 #22",
"displayName": "feature - TES-1 #22",
"externalEventSourceId": "6b94d163181c486588f8d890782bbaab",
"lastUpdated": "2024-06-26T21:05:07.749Z",
"updateSequenceNumber": 1719435907749,
"url": "http://localhost:8081/job/feature%20-%20TES-1/22/"
}
},
{
"build": {
"buildProperties": {
"completedAt": "2024-06-26T20:38:41.337Z",
"pipeline": {
"displayName": "feature - TES-1",
"pipelineId": "6b94d163181c486588f8d890782bbaab",
"url": "http://localhost:8081/job/feature%20-%20TES-1/"
},
"startedAt": "2024-06-26T20:38:41.052Z",
"state": "SUCCESSFUL"
},
"description": "feature - TES-1 #21",
"displayName": "feature - TES-1 #21",
"externalEventSourceId": "6b94d163181c486588f8d890782bbaab",
"lastUpdated": "2024-06-26T20:38:41.052Z",
"updateSequenceNumber": 1719434321052,
"url": "http://localhost:8081/job/feature%20-%20TES-1/21/"
}
},
{
"build": {
"buildProperties": {
"completedAt": "2024-06-26T17:31:32.185Z",
"pipeline": {
"displayName": "feature - TES-1",
"pipelineId": "6b94d163181c486588f8d890782bbaab",
"url": "http://localhost:8081/job/feature%20-%20TES-1/"
},
"startedAt": "2024-06-26T17:31:31.666Z",
"state": "SUCCESSFUL"
},
"description": "feature - TES-1 #14",
"displayName": "feature - TES-1 #14",
"externalEventSourceId": "6b94d163181c486588f8d890782bbaab",
"lastUpdated": "2024-06-26T17:31:31.666Z",
"updateSequenceNumber": 1719423091666,
"url": "http://localhost:8081/job/feature%20-%20TES-1/14/"
}
},
{
"build": {
"buildProperties": {
"completedAt": "2024-06-26T17:47:34.348Z",
"pipeline": {
"displayName": "feature - TES-1",
"pipelineId": "6b94d163181c486588f8d890782bbaab",
"url": "http://localhost:8081/job/feature%20-%20TES-1/"
},
"startedAt": "2024-06-26T17:47:34.008Z",
"state": "SUCCESSFUL"
},
"description": "feature - TES-1 #17",
"displayName": "feature - TES-1 #17",
"externalEventSourceId": "6b94d163181c486588f8d890782bbaab",
"lastUpdated": "2024-06-26T17:47:34.008Z",
"updateSequenceNumber": 1719424054008,
"url": "http://localhost:8081/job/feature%20-%20TES-1/17/"
}
}
]
}
But only
{
"build": {
"buildProperties": {
"completedAt": "2024-06-27T13:50:08.226Z",
"pipeline": {
"displayName": "feature - TES-1",
"pipelineId": "6b94d163181c486588f8d890782bbaab",
"url": "http://localhost:8081/job/feature%20-%20TES-1/"
},
"startedAt": "2024-06-27T13:50:07.933Z",
"state": "SUCCESSFUL"
},
"description": "feature - TES-1 #23",
"displayName": "feature - TES-1 #23",
"externalEventSourceId": "6b94d163181c486588f8d890782bbaab",
"lastUpdated": "2024-06-27T13:50:07.933Z",
"updateSequenceNumber": 1719496207933,
"url": "http://localhost:8081/job/feature%20-%20TES-1/23/"
}
}
Shows up in Compass.
I think the Compass events have the same underlying engine as Jira Software
Jira software only shows the last build, could this mean that this is also the case for Compass?
Just did a test with deployments and the result also in not as expected
When I send this batch:
{
"events": [
{
"deployment": {
"deploymentProperties": {
"completedAt": "2024-01-16T09:11:58.89Z",
"environment": {
"category": "PRODUCTION",
"displayName": "production",
"environmentId": "production"
},
"pipeline": {
"displayName": "TES-1",
"pipelineId": "b3be1578c9864deb83478e81b27157b1",
"url": "http://localhost:8081/job/TES-1/"
},
"sequenceNumber": 7,
"startedAt": "2024-01-16T09:11:58.545Z",
"state": "SUCCESSFUL"
},
"description": "TES-1 #7",
"displayName": "TES-1 #7",
"externalEventSourceId": "b3be1578c9864deb83478e81b27157b1",
"lastUpdated": "2024-01-16T09:11:58.545Z",
"updateSequenceNumber": 1705396318545,
"url": "http://localhost:8081/job/TES-1/7/"
}
},
{
"deployment": {
"deploymentProperties": {
"completedAt": "2024-01-19T13:37:25.868Z",
"environment": {
"category": "PRODUCTION",
"displayName": "production",
"environmentId": "production"
},
"pipeline": {
"displayName": "TES-1",
"pipelineId": "b3be1578c9864deb83478e81b27157b1",
"url": "http://localhost:8081/job/TES-1/"
},
"sequenceNumber": 9,
"startedAt": "2024-01-19T13:37:25.546Z",
"state": "SUCCESSFUL"
},
"description": "TES-1 #9",
"displayName": "TES-1 #9",
"externalEventSourceId": "b3be1578c9864deb83478e81b27157b1",
"lastUpdated": "2024-01-19T13:37:25.546Z",
"updateSequenceNumber": 1705671445546,
"url": "http://localhost:8081/job/TES-1/9/"
}
},
{
"deployment": {
"deploymentProperties": {
"completedAt": "2024-01-19T13:35:25.22Z",
"environment": {
"category": "PRODUCTION",
"displayName": "production",
"environmentId": "production"
},
"pipeline": {
"displayName": "TES-1",
"pipelineId": "b3be1578c9864deb83478e81b27157b1",
"url": "http://localhost:8081/job/TES-1/"
},
"sequenceNumber": 8,
"startedAt": "2024-01-19T13:35:24.636Z",
"state": "SUCCESSFUL"
},
"description": "TES-1 #8",
"displayName": "TES-1 #8",
"externalEventSourceId": "b3be1578c9864deb83478e81b27157b1",
"lastUpdated": "2024-01-19T13:35:24.636Z",
"updateSequenceNumber": 1705671324636,
"url": "http://localhost:8081/job/TES-1/8/"
}
},
{
"deployment": {
"deploymentProperties": {
"completedAt": "2024-01-19T13:49:19.992Z",
"environment": {
"category": "PRODUCTION",
"displayName": "production",
"environmentId": "production"
},
"pipeline": {
"displayName": "TES-1",
"pipelineId": "b3be1578c9864deb83478e81b27157b1",
"url": "http://localhost:8081/job/TES-1/"
},
"sequenceNumber": 11,
"startedAt": "2024-01-19T13:49:19.665Z",
"state": "SUCCESSFUL"
},
"description": "TES-1 #11",
"displayName": "TES-1 #11",
"externalEventSourceId": "b3be1578c9864deb83478e81b27157b1",
"lastUpdated": "2024-01-19T13:49:19.665Z",
"updateSequenceNumber": 1705672159665,
"url": "http://localhost:8081/job/TES-1/11/"
}
},
{
"deployment": {
"deploymentProperties": {
"completedAt": "2024-01-19T13:43:08.722Z",
"environment": {
"category": "PRODUCTION",
"displayName": "production",
"environmentId": "production"
},
"pipeline": {
"displayName": "TES-1",
"pipelineId": "b3be1578c9864deb83478e81b27157b1",
"url": "http://localhost:8081/job/TES-1/"
},
"sequenceNumber": 10,
"startedAt": "2024-01-19T13:43:08.234Z",
"state": "SUCCESSFUL"
},
"description": "TES-1 #10",
"displayName": "TES-1 #10",
"externalEventSourceId": "b3be1578c9864deb83478e81b27157b1",
"lastUpdated": "2024-01-19T13:43:08.234Z",
"updateSequenceNumber": 1705671788234,
"url": "http://localhost:8081/job/TES-1/10/"
}
}
]
}
Only Deployment #7 and #8 are shown in Compass, #9, #10 and #11 are not shown. Also no errors.
If the implementation was like Jira Software then I would have expected only the latest build and all the deployments to show. But this seems to be only the latest build and some selective deployments.