aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOliver Smith <osmith@sysmocom.de>2022-10-06 11:40:30 +0200
committerOliver Smith <osmith@sysmocom.de>2022-10-07 10:18:21 +0200
commit4d214f4f9af1d33b840c64937172cd2f8a412698 (patch)
tree85bf919b4bd0cadfe82da0b4fc5d58617c6241a8
parentc3bab9ab41c5172d4a89f246fdb99b504819ac84 (diff)
jobs/gerrit-verifications: add param to skip build
Prepare to unify the list of projects in jobs/gerrit-verifications.yml and jobs/gerrit-lint.yml by allowing to skip the build for some repositories (e.g. docker-playground is linted but we don't run a contrib/jenkins.sh there). Change-Id: Ie6264d44120798c0ecbcaf9c63d9b95f74ae9e37
-rw-r--r--jobs/gerrit-verifications.yml10
1 files changed, 10 insertions, 0 deletions
diff --git a/jobs/gerrit-verifications.yml b/jobs/gerrit-verifications.yml
index 0a7ccac..26f7f64 100644
--- a/jobs/gerrit-verifications.yml
+++ b/jobs/gerrit-verifications.yml
@@ -64,6 +64,8 @@
gerrit_url: 'ssh://jenkins@gerrit.osmocom.org:29418'
repos_url: '{gerrit_url}/{repos}'
gerrit_project: '{repos}'
+ # Which jobs to run in the pipeline
+ pipeline_build: true
# in alphabetical order
repos:
@@ -307,6 +309,11 @@
- job-template:
name: 'gerrit-{repos}'
project-type: pipeline
+ parameters:
+ - bool:
+ name: PIPELINE_BUILD
+ description: Enable the build job (runs contrib/jenkins.sh)
+ default: '{obj:pipeline_build}'
dsl: |
pipeline {{
agent {{ label "osmocom-gerrit" }}
@@ -314,6 +321,9 @@
stage("Verification") {{
parallel {{
stage("Build") {{
+ when {{
+ expression {{ params.PIPELINE_BUILD }}
+ }}
steps {{
script {{
// Run the build job for this repository and keep going on failure