build status value is inconsistent depending on the API called
Summary
Webhooks received 'Pipeline Hook' and 'Job Hook' expose different information about the build_status:
- In the Job Hook payload the build_status is
created
. - In the pipeline hook payload, the build_status is
manual
.
Job Hook payload:
{
"object_kind": "build",
"build_id": 93399295,
"sha": "1b5e85b17c50208be467977c3c5b12d79c43df9b",
"build_status": "created",
l.... "}
Pipeline Hook payload:
{
"object_kind": "pipeline"
"object_attributes":
{"id": 29048736,
"sha": "1b5e85b17c50208be467977c3c5b12d79c43df9b",
"builds": [
{ "id": 93399295,
"name": "build-image",
"status": "manual",
"created_at": "2018-08-30 13:36:49 UTC", "started_at": null, "finished_at": null,
"when": "manual",
"manual": true
}
]
...
}
Steps to reproduce
Create a pipeline with manual steps, configure an integration hook to receive 'Pipeline' and 'Job' hooks
What is the expected correct behavior?
Build status shoudl be the same in both payload.
Edited by ant31