Fix jenkins-cfg GitHub cfg to build head of branch 16/10416/1
authorThanh Ha <thanh.ha@linuxfoundation.org>
Thu, 3 May 2018 20:45:00 +0000 (16:45 -0400)
committerThanh Ha <thanh.ha@linuxfoundation.org>
Thu, 3 May 2018 20:46:26 +0000 (16:46 -0400)
There this job was originally misconfigured and was configured as if
it was a verify job. It should be operating instead as a merge job
and not be pulling in the $sha1 setting. This fixes the job to only
build HEAD of branch as one would expect.

Issue: RELENG-844
Change-Id: I8fa6b25a2fd4b598f619ab4c6ae80ce411756cb4
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
jjb/lf-ci-jobs.yaml

index d2a8f5e..988f893 100644 (file)
     scm:
       - lf-infra-github-scm:
           url: '{git-clone-url}{github-org}/{project}'
-          refspec: '+refs/pull/*:refs/remotes/origin/pr/*'
-          branch: '$sha1'
+          refspec: ''
+          branch: 'refs/heads/{branch}'
           submodule-recursive: true
           choosing-strategy: default
           jenkins-ssh-credential: '{jenkins-ssh-credential}'