Use SCM 'gerrit' choosing strategy for kni jobs 96/3896/1
authorJames E. Blair <jeblair@redhat.com>
Thu, 12 Nov 2020 21:38:45 +0000 (13:38 -0800)
committerJames E. Blair <jeblair@redhat.com>
Thu, 12 Nov 2020 21:41:09 +0000 (13:41 -0800)
The KNI jobs appear to be building the master branch even after
fetching proposed changes to gerrit.  Change the choosing strategy
from 'default' to 'gerrit' to correct this.

See https://plugins.jenkins.io/gerrit-trigger/ for docs.

Change-Id: I028cde257415b2eb297cfa100f68d109df3fac71
Signed-off-by: James E. Blair <jeblair@redhat.com>
jjb/akraino-templates/akraino-jjb-kni.yaml

index e75fa4f..df0abf4 100644 (file)
@@ -80,7 +80,7 @@
           submodule-recursive: '{submodule-recursive}'
           submodule-timeout: '{submodule-timeout}'
           submodule-disable: false
-          choosing-strategy: default
+          choosing-strategy: gerrit
 
     gerrit_verify_triggers:
       - patchset-created-event:
           submodule-recursive: '{submodule-recursive}'
           submodule-timeout: '{submodule-timeout}'
           submodule-disable: false
-          choosing-strategy: default
+          choosing-strategy: gerrit
           basedir: '{project-name}'
       - akraino-lf-infra-gerrit-scm:
           jenkins-ssh-credential: '{jenkins-ssh-credential}'
           submodule-recursive: '{submodule-recursive}'
           submodule-timeout: '{submodule-timeout}'
           submodule-disable: false
-          choosing-strategy: default
+          choosing-strategy: gerrit
           basedir: 'kni-blueprint-pae'
       - akraino-lf-infra-gerrit-scm:
           jenkins-ssh-credential: '{jenkins-ssh-credential}'