Add runner information in build event
In the build event there is no information about the runner that executes the job.
Please add runner.id, runner.description in this event where applicable.
{
"build_id": 9459251,
"build_status": "running",
"project_name": "path / to / the / project",
"before_sha": "0000000000000000000000000000000000000000",
"object_kind": "build",
"build_failure_reason": "unknown_failure",
"build_stage": "build",
"build_name": "the_build_name",
"sha": "ddc072213ed2675d6acaf3cdd44d0bb2a7c8dbf8",
"build_finished_at": null,
"tag": false,
"user": {
"email": "my-name@my-company.com",
"id": 4184,
"name": "My Name"
},
"build_duration": 0.214173244,
"commit": {
"status": "running",
"author_email": "my-name@my-company.com",
"finished_at": null,
"author_name": "My Name",
"sha": "ddc072213ed2675d6acaf3cdd44d0bb2a7c8dbf8",
"author_url": "https://some/url",
"duration": null,
"message": "Some Commit Message\\n",
"started_at": "2019-11-21 13:34:18 UTC",
"id": 1305524 // NOTE: THIS IS ACTUALLY THE PIPELINE ID!!
},
"build_started_at": "2019-11-21 13:34:18 UTC",
"project_id": 19654,
"ref": "some/ref",
"build_allow_failure": false,
"repository": {
"git_ssh_url": "git@mygitlab.mycompany/path/to/the/project.git",
"name": "project_fusion",
"url": "git@mygitlab.mycompany/path/to/the/project.git",
"git_http_url": "https://mygitlab.mycompany/path/to/the/project.git",
"visibility_level": 0,
"homepage": "https://mygitlab.mycompany/path/to/the/project",
"description": ""
}
// please add the following key:
"runner": {
"active": true,
"is_shared": false,
"id": 12927,
"description": "some runner description"
},
// bonus: add the pipeline id that is lurking under commit.id for the moment
"pipeline_id": 1305524
}