osmith has uploaded this change for review.

View Change

jenkins-gerrit: meaningful re_start_build error

Related: OS#2385
Change-Id: Ib29b7ce69a27453b460f946ad67bd12faffc2c89
---
M scripts/jenkins-gerrit/pipeline_summary.py
1 file changed, 4 insertions(+), 0 deletions(-)

git pull ssh://gerrit.osmocom.org:29418/osmo-ci refs/changes/00/29700/1
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 @@
# 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


To view, visit change 29700. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: osmo-ci
Gerrit-Branch: master
Gerrit-Change-Id: Ib29b7ce69a27453b460f946ad67bd12faffc2c89
Gerrit-Change-Number: 29700
Gerrit-PatchSet: 1
Gerrit-Owner: osmith <osmith@sysmocom.de>
Gerrit-MessageType: newchange