osmith has uploaded this change for review.
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
---
M jobs/gerrit-verifications.yml
1 file changed, 10 insertions(+), 0 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-ci refs/changes/69/29669/1
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
To view, visit change 29669. To unsubscribe, or for help writing mail filters, visit settings.