diff options
author | Oliver Smith <osmith@sysmocom.de> | 2022-10-12 11:01:43 +0200 |
---|---|---|
committer | Oliver Smith <osmith@sysmocom.de> | 2022-10-12 11:07:09 +0200 |
commit | a02b53fe4f7ced8fa08dc26886a78b3cb233aead (patch) | |
tree | 039ab12d7e6bda69a169dca36a38f28ce9f1e891 | |
parent | 9c2e2575a97cf8923f43ac8e849412b3ca5012ef (diff) |
jenkins-gerrit: meaningful re_start_build error
Related: OS#2385
Change-Id: Ib29b7ce69a27453b460f946ad67bd12faffc2c89
-rwxr-xr-x | scripts/jenkins-gerrit/pipeline_summary.py | 4 |
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 |