Set GERRIT_REFSPEC defaults for Gerrit Trigger jobs 54/30754/1
authorThanh Ha <thanh.ha@linuxfoundation.org>
Sat, 5 Dec 2015 02:59:04 +0000 (21:59 -0500)
committerThanh Ha <thanh.ha@linuxfoundation.org>
Sat, 5 Dec 2015 03:00:44 +0000 (22:00 -0500)
According to Gerrit Trigger documentation if you set a default value for
GERRIT_REFSPECT you can trigger jobs using the build now button rather
than it always failing.

Might as well set this so that it's easier to test these job types on
the sandbox.

See: https://wiki.jenkins-ci.org/display/JENKINS/Gerrit+Trigger

Change-Id: I7cc03920016de09d35fb6f881067c9cb401522fc
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
jjb-templates/merge.yaml
jjb-templates/verify.yaml

index 60339777e09b1bdc9a32c708991a60dd09189f19..db400f33f620e628370a072c620888d6aee9bfd3 100644 (file)
     parameters:
         - project-parameter:
             project: '{project}'
+        - gerrit-parameter:
+            branch: '{branch}'
+        - gerrit-refspec-parameter:
+            refspec: 'refs/heads/{branch}'
 
     scm:
         - gerrit-trigger-scm:
index 34c5f1f70c1624bf69f9ada29e7d40439e609dd2..afe1078dac3cfd8900e966bcc4f9b86a6737ba23 100644 (file)
@@ -34,6 +34,8 @@
             project: '{project}'
         - gerrit-parameter:
             branch: '{branch}'
+        - gerrit-refspec-parameter:
+            refspec: 'refs/heads/{branch}'
 
     scm:
         - gerrit-trigger-scm: