Honor infra parameters in autorelease templates 77/48777/3
authorVratko Polak <vrpolak@cisco.com>
Tue, 29 Nov 2016 11:51:12 +0000 (12:51 +0100)
committerVratko Polak <vrpolak@cisco.com>
Tue, 29 Nov 2016 11:51:12 +0000 (12:51 +0100)
This allows unmerged autorelease patches to be tested on Sandbox.

Change-Id: I4777e14ef64cd5d07f14fee5e78f185584f9d490
Signed-off-by: Vratko Polak <vrpolak@cisco.com>
jjb/autorelease/autorelease-templates.yaml

index 2b2b874052628b4323c49f98e3cbe06941760128..6480aadb0ddd94cbc44bd1bfcf900cc83addb90a 100644 (file)
         - git:
             credentials-id: 'opendaylight-jenkins-ssh'
             url: '$GIT_BASE'
-            refspec: ''
+            refspec: '$GERRIT_REFSPEC'
             branches:
-                - 'origin/{branch}'
+                - '$GERRIT_BRANCH'
+            choosing-strategy: 'gerrit'
             skip-tag: true
             submodule:
                 recursive: true
         - git:
             credentials-id: 'opendaylight-jenkins-ssh'
             url: '$GIT_BASE'
-            refspec: ''
+            refspec: '$GERRIT_REFSPEC'
             branches:
-                - 'origin/{branch}'
+                - '$GERRIT_BRANCH'
+            choosing-strategy: 'gerrit'
             skip-tag: true
             submodule:
                 recursive: true