osmith submitted this change.

View Change

Approvals: Jenkins Builder: Verified laforge: Looks good to me, but someone else must approve pespin: Looks good to me, approved
jobs/gerrit-verifications: support up to 5 distros

I noticed that libosmocore wasn't building for debian:13 anymore in CI
even though it has:

pipeline_binpkgs: "almalinux:8 centos:7 debian:10 debian:13"

This is because only 3 parameters for pipeline_binpkgs were supported.
Increase the count to 5. When I wrote this initially I had also looked
into making it so that new stages get added automatically depending on
the amount of parameters, but didn't find a way to do it with the
"groovy" language used for jenkins pipelines. Therefore just increase
the count to 5 and add a test in a follow-up patch to ensure we can't go
beyond that number without noticing in the future.

Change-Id: I9fd3c90cee659706a53e81244f3324d0e9940069
---
M jobs/gerrit-verifications.yml
1 file changed, 24 insertions(+), 0 deletions(-)

diff --git a/jobs/gerrit-verifications.yml b/jobs/gerrit-verifications.yml
index 28ca308..45ffc38 100644
--- a/jobs/gerrit-verifications.yml
+++ b/jobs/gerrit-verifications.yml
@@ -759,6 +759,30 @@
}}
}}

+ stage("binpkgs-3") {{
+ when {{
+ expression {{ params.PIPELINE_BINPKGS.split().size() > 3 }}
+ }}
+ steps {{
+ script {{
+ distro = params.PIPELINE_BINPKGS.split()[3]
+ run_job(distro, "gerrit-binpkgs", null, distro)
+ }}
+ }}
+ }}
+
+ stage("binpkgs-4") {{
+ when {{
+ expression {{ params.PIPELINE_BINPKGS.split().size() > 4 }}
+ }}
+ steps {{
+ script {{
+ distro = params.PIPELINE_BINPKGS.split()[4]
+ run_job(distro, "gerrit-binpkgs", null, distro)
+ }}
+ }}
+ }}
+
}} // end of parallel
}} // end of Verification stage


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

Gerrit-MessageType: merged
Gerrit-Project: osmo-ci
Gerrit-Branch: master
Gerrit-Change-Id: I9fd3c90cee659706a53e81244f3324d0e9940069
Gerrit-Change-Number: 43239
Gerrit-PatchSet: 1
Gerrit-Owner: osmith <osmith@sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria <vyanitskiy@sysmocom.de>
Gerrit-Reviewer: laforge <laforge@osmocom.org>
Gerrit-Reviewer: osmith <osmith@sysmocom.de>
Gerrit-Reviewer: pespin <pespin@sysmocom.de>