GitLab Gating CI: introduce pipeline-status contrib script
commitc02b2eac55ef72dd17b2ea8408c312d83f9e0482
authorCleber Rosa <crosa@redhat.com>
Thu, 9 Jul 2020 02:46:56 +0000 (8 22:46 -0400)
committerThomas Huth <thuth@redhat.com>
Mon, 13 Jul 2020 09:40:52 +0000 (13 11:40 +0200)
treef959cb45335010a7a06a1f1891540fb18ae90edd
parentccb237090fdafedce56cb8b62f451a09ad5031c9
GitLab Gating CI: introduce pipeline-status contrib script

This script is intended to be used right after a push to a branch.

By default, it will look for the pipeline associated with the commit
that is the HEAD of the *local* staging branch.  It can be used as a
one time check, or with the `--wait` option to wait until the pipeline
completes.

If the pipeline is successful, then a merge of the staging branch into
the master branch should be the next step.

Signed-off-by: Cleber Rosa <crosa@redhat.com>
Message-Id: <20200709024657.2500558-2-crosa@redhat.com>
[thuth: Added the changes suggested by Erik Skultety]
Signed-off-by: Thomas Huth <thuth@redhat.com>
scripts/ci/gitlab-pipeline-status [new file with mode: 0755]