Add new zuul-trigger-scm macro 56/256/1
authorAndrew Grimberg <agrimberg@linuxfoundation.org>
Mon, 8 Feb 2016 23:33:58 +0000 (15:33 -0800)
committerAndrew Grimberg <agrimberg@linuxfoundation.org>
Mon, 8 Feb 2016 23:33:58 +0000 (15:33 -0800)
Add a new macro for zuul triggered scm

Change-Id: Ib23b7ba3d802339951e57a864a0fa40d954de5de
Signed-off-by: Andrew Grimberg <agrimberg@linuxfoundation.org>
jjb/global-macros.yaml

index dc30fbd..d5fd41e 100644 (file)
             skip-tag: true
             choosing-strategy: '{choosing-strategy}'
 
+- scm:
+    name: zuul-trigger-scm
+    scm:
+      - git:
+          url: '$ZUUL_URL/$ZUUL_PROJECT'
+          refspec: '{refspec}'
+          branches:
+            - 'origin/$ZUUL_BRANCH'
+          skip-tag: true
+          wipe-workspace: true
+
 ###### WRAPPERS
 - wrapper:
     name: build-timeout