Add multibranch pipeline to validate the gerrit project
This change adds a multibranch pipeline that will verify all changes
of Gerrit that contain a Jenkinsfile in their working tree. It has the
same task as the Gerrit-verifier-flow job, which uses the deprecated
workflow job type. The old job can be removed as soon as all branches
that are supposed to be verified have a Jenkinsfile.
Change-Id: I5942ddfb73e83ad85ec527d2edd6601e35ddbf7a
diff --git a/jenkins/gerrit-verifier.yaml b/jenkins/gerrit-verifier.yaml
index 5ea5853..6e2d984 100644
--- a/jenkins/gerrit-verifier.yaml
+++ b/jenkins/gerrit-verifier.yaml
@@ -171,3 +171,20 @@
properties:
- build-discarder:
days-to-keep: 1
+
+- job:
+ name: 'Gerrit-verifier-pipeline'
+ description: Multi-branch pipeline to validate Gerrit
+ project-type: multibranch
+ node: master
+ scm:
+ - gerrit:
+ url: https://gerrit-review.googlesource.com/a/gerrit
+ credentials-id: gerrit-review.googlesource.com
+ refspecs:
+ - '+refs/heads/*:refs/remotes/@{remote}/*'
+ - '+refs/changes/*:refs/remotes/@{remote}/*'
+ property-strategies:
+ all-branches:
+ - suppress-scm-triggering: true
+ - pipeline-branch-durability-override: max-survivability