ci-test webhook sends invalid json to Jenkins
See for example https://jenkins-lhcb-nightlies.web.cern.ch/job/nightly-builds/job/gitlab-mr/2503/console
The formatted content
parameter for job 2503 is below (look for v2 Track
to see the problem).
One thing to note is that it seems the parameter type changed with the new frontend (now it's a single line text field vs multi-line before).
Another thing to note is that after removing the quotes, the content
parameter for job 2505 seems valid json, but the job still fails in the decoding: https://jenkins-lhcb-nightlies.web.cern.ch/job/nightly-builds/job/gitlab-mr/2505/console
{
"object_kind": "note",
"event_type": "note",
"user": {
"id": 10178,
"name": "Miroslav Saur",
"username": "msaur",
"avatar_url": null,
"email": "miroslav.saur@cern.ch"
},
"project_id": 399,
"project": {
"id": 399,
"name": "LHCb",
"description": "The LHCb project contains general purpose classes used throughout the LHCb software. It is built on top of the Gaudi framework. Documentation is available at http://cern.ch/lhcbdoc/lhcb",
"web_url": "https://gitlab.cern.ch/lhcb/LHCb",
"avatar_url": null,
"git_ssh_url": "ssh://git@gitlab.cern.ch:7999/lhcb/LHCb.git",
"git_http_url": "https://gitlab.cern.ch/lhcb/LHCb.git",
"namespace": "LHCb",
"visibility_level": 20,
"path_with_namespace": "lhcb/LHCb",
"default_branch": "master",
"ci_config_path": null,
"homepage": "https://gitlab.cern.ch/lhcb/LHCb",
"url": "ssh://git@gitlab.cern.ch:7999/lhcb/LHCb.git",
"ssh_url": "ssh://git@gitlab.cern.ch:7999/lhcb/LHCb.git",
"http_url": "https://gitlab.cern.ch/lhcb/LHCb.git"
},
"object_attributes": {
"attachment": null,
"author_id": 10178,
"change_position": null,
"commit_id": null,
"created_at": "2021-04-06 10:01:27 +0200",
"discussion_id": "8ccba2d720789a80b868bc141d90fb852173de9b",
"id": 4367756,
"line_code": null,
"note": "/ci-test --merge Rec!2356 Phys!882",
"noteable_id": 321359,
"noteable_type": "MergeRequest",
"original_position": null,
"position": null,
"project_id": 399,
"resolved_at": null,
"resolved_by_id": null,
"resolved_by_push": null,
"st_diff": null,
"system": false,
"type": "DiscussionNote",
"updated_at": "2021-04-06 10:01:27 +0200",
"updated_by_id": null,
"description": "/ci-test --merge Rec!2356 Phys!882",
"url": "https://gitlab.cern.ch/lhcb/LHCb/-/merge_requests/2920#note_4367756"
},
"repository": {
"name": "LHCb",
"url": "ssh://git@gitlab.cern.ch:7999/lhcb/LHCb.git",
"description": "The LHCb project contains general purpose classes used throughout the LHCb software. It is built on top of the Gaudi framework. Documentation is available at http://cern.ch/lhcbdoc/lhcb",
"homepage": "https://gitlab.cern.ch/lhcb/LHCb"
},
"merge_request": {
"assignee_id": 10178,
"author_id": 20581,
"created_at": "2021-01-25 17:26:45 +0100",
"description": "Implementation of "v2 Track" container mentioned to #97 , here named as Generic Tracks. Implements storage of full state covariance information, multiple states per track, and and storage of LHCbID's by subdetector. Currently, an exception is thrown when a state that is undefined for a certain track type is accessed, and that is all. All functions that access state information access the ClosestToBeam state by default if it exists, otherwise, it outputs the information for the FirstMeasurement state. Associated with Rec!2356 and Phys!882 @mramospe @mvesteri @apearce",
"head_pipeline_id": 2451232,
"id": 321359,
"iid": 2920,
"last_edited_at": "2021-03-01 15:50:40 +0100",
"last_edited_by_id": 20581,
"merge_commit_sha": null,
"merge_error": null,
"merge_params": {
"force_remove_source_branch": "0"
},
"merge_status": "can_be_merged",
"merge_user_id": null,
"merge_when_pipeline_succeeds": false,
"milestone_id": null,
"source_branch": "alexgilman_v2tracks",
"source_project_id": 399,
"state_id": 1,
"target_branch": "master",
"target_project_id": 399,
"time_estimate": 0,
"title": "Add a Generic Track SOA Container",
"updated_at": "2021-04-06 10:00:31 +0200",
"updated_by_id": 1360,
"url": "https://gitlab.cern.ch/lhcb/LHCb/-/merge_requests/2920",
"source": {
"id": 399,
"name": "LHCb",
"description": "The LHCb project contains general purpose classes used throughout the LHCb software. It is built on top of the Gaudi framework. Documentation is available at http://cern.ch/lhcbdoc/lhcb",
"web_url": "https://gitlab.cern.ch/lhcb/LHCb",
"avatar_url": null,
"git_ssh_url": "ssh://git@gitlab.cern.ch:7999/lhcb/LHCb.git",
"git_http_url": "https://gitlab.cern.ch/lhcb/LHCb.git",
"namespace": "LHCb",
"visibility_level": 20,
"path_with_namespace": "lhcb/LHCb",
"default_branch": "master",
"ci_config_path": null,
"homepage": "https://gitlab.cern.ch/lhcb/LHCb",
"url": "ssh://git@gitlab.cern.ch:7999/lhcb/LHCb.git",
"ssh_url": "ssh://git@gitlab.cern.ch:7999/lhcb/LHCb.git",
"http_url": "https://gitlab.cern.ch/lhcb/LHCb.git"
},
"target": {
"id": 399,
"name": "LHCb",
"description": "The LHCb project contains general purpose classes used throughout the LHCb software. It is built on top of the Gaudi framework. Documentation is available at http://cern.ch/lhcbdoc/lhcb",
"web_url": "https://gitlab.cern.ch/lhcb/LHCb",
"avatar_url": null,
"git_ssh_url": "ssh://git@gitlab.cern.ch:7999/lhcb/LHCb.git",
"git_http_url": "https://gitlab.cern.ch/lhcb/LHCb.git",
"namespace": "LHCb",
"visibility_level": 20,
"path_with_namespace": "lhcb/LHCb",
"default_branch": "master",
"ci_config_path": null,
"homepage": "https://gitlab.cern.ch/lhcb/LHCb",
"url": "ssh://git@gitlab.cern.ch:7999/lhcb/LHCb.git",
"ssh_url": "ssh://git@gitlab.cern.ch:7999/lhcb/LHCb.git",
"http_url": "https://gitlab.cern.ch/lhcb/LHCb.git"
},
"last_commit": {
"id": "c6b4fa9d5451400ace8693423cb8890c45bb9c47",
"message": "Simplify the way to determine the column index for a given StateLocation",
"title": "Simplify the way to determine the column index for a given StateLocation",
"timestamp": "2021-03-31T13:23:28+02:00",
"url": "https://gitlab.cern.ch/lhcb/LHCb/-/commit/c6b4fa9d5451400ace8693423cb8890c45bb9c47",
"author": {
"name": "Miguel Ramos Pernas",
"email": "miguel.ramos.pernas@cern.ch"
}
},
"work_in_progress": false,
"total_time_spent": 0,
"human_total_time_spent": null,
"human_time_estimate": null,
"assignee_ids": [
10178,
20581
],
"state": "opened"
}
}
Edited by Rosen Matev