Fix ci-management-verify not testing the submitted commit 18/318/2
authorThanh Ha <thanh.ha@linuxfoundation.org>
Fri, 12 Feb 2016 23:35:05 +0000 (18:35 -0500)
committerThanh Ha <thanh.ha@linuxfoundation.org>
Fri, 12 Feb 2016 23:41:36 +0000 (18:41 -0500)
The ci verify job was testing branch HEAD which doesn't help us verify
code submissions. This patch fixes it so that we pass a parameter
{commit} to represent the branch or commit that we should run against.
Sets the merge job to run against $ZUUL_BRANCH while the verify job
runs against $ZUUL_COMMIT.

Change-Id: I9516bfc14a9981c5e8348e0a6324a3c15b5afc32
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
jjb/ci-management-jobs.yaml
jjb/global-macros.yaml

index 010e220..343a34e 100644 (file)
@@ -24,6 +24,7 @@
         - zuul-trigger-scm:
             credentials-id: '{ssh-credentials}'
             refspec: '$ZUUL_REF'
+            commit: '$ZUUL_COMMIT'
 
     wrappers:
         - ssh-agent-credentials:
@@ -55,6 +56,7 @@
         - zuul-trigger-scm:
             credentials-id: '{ssh-credentials}'
             refspec: ''
+            commit: 'origin/$ZUUL_BRANCH'
 
     wrappers:
         - ssh-agent-credentials:
index d5fd41e..9c0eeac 100644 (file)
@@ -74,7 +74,7 @@
           url: '$ZUUL_URL/$ZUUL_PROJECT'
           refspec: '{refspec}'
           branches:
-            - 'origin/$ZUUL_BRANCH'
+            - '{commit}'
           skip-tag: true
           wipe-workspace: true