aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOliver Smith <osmith@sysmocom.de>2022-10-12 11:01:43 +0200
committerOliver Smith <osmith@sysmocom.de>2022-10-12 11:07:09 +0200
commita02b53fe4f7ced8fa08dc26886a78b3cb233aead (patch)
tree039ab12d7e6bda69a169dca36a38f28ce9f1e891
parent9c2e2575a97cf8923f43ac8e849412b3ca5012ef (diff)
jenkins-gerrit: meaningful re_start_build error
-rwxr-xr-xscripts/jenkins-gerrit/pipeline_summary.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/jenkins-gerrit/pipeline_summary.py b/scripts/jenkins-gerrit/pipeline_summary.py
index c12ad64..85b2393 100755
--- a/scripts/jenkins-gerrit/pipeline_summary.py
+++ b/scripts/jenkins-gerrit/pipeline_summary.py
@@ -65,6 +65,10 @@ def parse_pipeline(build_url):
# Parse result lines
if re_result.match(line):
stage = line.split("_")[1].lower()
+ assert stage in ret, f"found result for stage {stage}, but" \
+ " didn't find where it was started. The" \
+ " re_start_build regex probably needs to be adjusted" \
+ " to match the related gerrit-*-build job."
passed = line.split("=")[1].rstrip() == "1"
ret[stage]["passed"] = passed