* getting gitlab pipeline status
@ 2022-08-06 23:01 Marek Marczykowski-Górecki
0 siblings, 0 replies; only message in thread
From: Marek Marczykowski-Górecki @ 2022-08-06 23:01 UTC (permalink / raw)
To: xen-devel
[-- Attachment #1: Type: text/plain, Size: 1003 bytes --]
Hi,
Related to an IRC chat few days ago - here is how to get gitlab pipeline status:
# get latest pipeline of a branch
$ curl -s 'https://gitlab.com/api/v4/projects/xen-project%2Fxen/pipelines?ref=staging' | jq -r '.[0].status'
success
# get latest pipeline of a commit (example of success and failure)
$ curl -s 'https://gitlab.com/api/v4/projects/xen-project%2Fxen/pipelines?sha=6d6aee437e37fced0c49be97e08c30da873690fc' | jq -r '.[0].status'
success
$ curl -s 'https://gitlab.com/api/v4/projects/xen-project%2Fxen/pipelines?sha=da74c951e4e58080583daaad373b0d38a3f8bc83' | jq -r '.[0].status'
failed
Documentation:
https://docs.gitlab.com/ee/api/pipelines.html#list-project-pipelines
If making osstest push gate checking gitlab pipeline status is desirable
(IMO that would be helpful), the above should be enough. I'm not fluent
in osstest internals, but I hope it isn't too complex to add such
check...
--
Best Regards,
Marek Marczykowski-Górecki
Invisible Things Lab
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-08-06 23:02 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-08-06 23:01 getting gitlab pipeline status Marek Marczykowski-Górecki
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.