summaryrefslogtreecommitdiffstats
path: root/jjb
diff options
context:
space:
mode:
authorThanh Ha <thanh.ha@linuxfoundation.org>2016-02-12 18:35:05 -0500
committerThanh Ha <thanh.ha@linuxfoundation.org>2016-02-12 18:41:36 -0500
commit020845e00f0613b1b5ca3ce4ea8a6e26e4378a43 (patch)
treee8ad9f5e310832c840d76a11b2846766f320ca02 /jjb
parent70cfdc0fa1a1942aa17eb5c12437ef9a1af5cb40 (diff)
Fix ci-management-verify not testing the submitted commit
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>
Diffstat (limited to 'jjb')
-rw-r--r--jjb/ci-management-jobs.yaml2
-rw-r--r--jjb/global-macros.yaml2
2 files changed, 3 insertions, 1 deletions
diff --git a/jjb/ci-management-jobs.yaml b/jjb/ci-management-jobs.yaml
index 010e220b0..343a34e9e 100644
--- a/jjb/ci-management-jobs.yaml
+++ b/jjb/ci-management-jobs.yaml
@@ -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:
diff --git a/jjb/global-macros.yaml b/jjb/global-macros.yaml
index d5fd41ee8..9c0eeacbb 100644
--- a/jjb/global-macros.yaml
+++ b/jjb/global-macros.yaml
@@ -74,7 +74,7 @@
url: '$ZUUL_URL/$ZUUL_PROJECT'
refspec: '{refspec}'
branches:
- - 'origin/$ZUUL_BRANCH'
+ - '{commit}'
skip-tag: true
wipe-workspace: true