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
This commit is contained in:
Oliver Smith 2022-10-06 11:40:30 +02:00
parent c3bab9ab41
commit 4d214f4f9a
1 changed files with 10 additions and 0 deletions

View File

@ -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