osmith has submitted this change. ( https://gerrit.osmocom.org/c/osmo-ci/+/29669 )
Change subject: jobs/gerrit-verifications: add param to skip build ......................................................................
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(-)
Approvals: Jenkins Builder: Verified pespin: Looks good to me, but someone else must approve msuraev: Looks good to me, but someone else must approve laforge: Looks good to me, approved
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