aboutsummaryrefslogtreecommitdiff
path: root/scripts/ci/gitlab-pipeline-status
diff options
context:
space:
mode:
authorCleber Rosa <crosa@redhat.com>2021-02-22 14:32:40 -0500
committerThomas Huth <thuth@redhat.com>2021-03-09 06:03:53 +0100
commit6179f32eeb6b13574ef65c85f836c681d213e577 (patch)
tree928eb04be9905b4534df16d8d142148b7d88cce1 /scripts/ci/gitlab-pipeline-status
parent861d1d509b111f59b294c975eee59f2a23bc783a (diff)
scripts/ci/gitlab-pipeline-status: give more info when pipeline not found
This includes both input parameters (project id and commit) in the message so to make it easier to debug returned API calls. Signed-off-by: Cleber Rosa <crosa@redhat.com> Reviewed-by: Wainer dos Santos Moschetta <wainersm@redhat.com> Message-Id: <20210222193240.921250-4-crosa@redhat.com> Signed-off-by: Thomas Huth <thuth@redhat.com>
Diffstat (limited to 'scripts/ci/gitlab-pipeline-status')
-rwxr-xr-xscripts/ci/gitlab-pipeline-status4
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/ci/gitlab-pipeline-status b/scripts/ci/gitlab-pipeline-status
index ad62ab3cfc..924db327ff 100755
--- a/scripts/ci/gitlab-pipeline-status
+++ b/scripts/ci/gitlab-pipeline-status
@@ -74,7 +74,9 @@ def get_pipeline_status(project_id, commit_sha1):
# project + commit. If this assumption is false, we can add further
# filters to the url, such as username, and order_by.
if not json_response:
- raise NoPipelineFound("No pipeline found")
+ msg = "No pipeline found for project %s and commit %s" % (project_id,
+ commit_sha1)
+ raise NoPipelineFound(msg)
return json_response[0]