From: "Marek Marczykowski-Górecki" <marmarek@invisiblethingslab.com>
To: xen-devel <xen-devel@lists.xenproject.org>
Subject: getting gitlab pipeline status
Date: Sun, 7 Aug 2022 01:01:43 +0200 [thread overview]
Message-ID: <Yu7y2LoNMI4wyUxb@mail-itl> (raw)
[-- 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 --]
reply other threads:[~2022-08-06 23:02 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=Yu7y2LoNMI4wyUxb@mail-itl \
--to=marmarek@invisiblethingslab.com \
--cc=xen-devel@lists.xenproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.