Update jenkins-cfg-verify to use $GERRIT_REFSPEC 63/15263/4
authorAnil Belur <abelur@linuxfoundation.org>
Thu, 11 Apr 2019 12:29:45 +0000 (22:29 +1000)
committerAnil Belur <abelur@linuxfoundation.org>
Thu, 11 Apr 2019 12:29:45 +0000 (22:29 +1000)
Update jenkins-cfg to verify images names updated from the
$GERRIT_REFSPEC instead of the master branch.

Current implementation uses the 'master' branch instead of
the $GERRIT_REFSPEC, therefore failing the verify job
on false positives.

Issue: RELENG-1950
Change-Id: I6f212b28e4189ff5c7958035c7992b55d7153d02
Signed-off-by: Anil Belur <abelur@linuxfoundation.org>
jjb/lf-ci-jobs.yaml
releasenotes/notes/update-gerrit-scm-jenkins-cfg-17c18c7ae5a7143f.yaml [new file with mode: 0644]

index ebf637f..bdebb0f 100644 (file)
     scm:
       - lf-infra-gerrit-scm:
           git-url: '{git-url}'
-          refspec: 'refs/heads/{branch}'
-          branch: '{branch}'
+          refspec: '$GERRIT_REFSPEC'
+          branch: '$GERRIT_BRANCH'
           submodule-recursive: true
           submodule-timeout: '{submodule-timeout}'
-          choosing-strategy: default
+          choosing-strategy: gerrit
           jenkins-ssh-credential: '{jenkins-ssh-credential}'
 
     triggers:
diff --git a/releasenotes/notes/update-gerrit-scm-jenkins-cfg-17c18c7ae5a7143f.yaml b/releasenotes/notes/update-gerrit-scm-jenkins-cfg-17c18c7ae5a7143f.yaml
new file mode 100644 (file)
index 0000000..cffe047
--- /dev/null
@@ -0,0 +1,5 @@
+---
+fixes:
+  - |
+    Update jenkins-cfg-verify job to validate new images names obtained from
+    $GERRIT_REFSPEC instead of the master branch.