Make patch-test runnable without passing REFSPEC 92/54892/1
authorThanh Ha <thanh.ha@linuxfoundation.org>
Wed, 12 Apr 2017 19:19:27 +0000 (15:19 -0400)
committerThanh Ha <thanh.ha@linuxfoundation.org>
Wed, 12 Apr 2017 19:22:30 +0000 (15:22 -0400)
Gerrit will always pass GERRIT_REFSPEC and override this property if a
job is triggered by Gerrit Trigger. Sometimes it's nice to be able to
just click build on a job to test it so configure a default refspec
which allows this. It is still possible for the user to override and set
a specific GERRIT_REFSPEC too when they manually start the job.

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

index 3b46c1324da7c287349a8c1eaa1b357aec95951b..aa358429f43ddaaecb606a6a54f5790b09f0929e 100644 (file)
           os-cloud: '{os-cloud}'
           project: '{project}'
           branch: '{branch}'
-          refspec: '$GERRIT_REFSPEC'
+          refspec: 'refs/heads/{branch}'
           artifacts: '{archive-artifacts}'
       - integration-distribution-branch:
           branch: '{branch}'