Add refspec to validate-autorelease job 84/59984/1
authorThanh Ha <thanh.ha@linuxfoundation.org>
Wed, 5 Jul 2017 18:13:08 +0000 (14:13 -0400)
committerThanh Ha <thanh.ha@linuxfoundation.org>
Wed, 5 Jul 2017 18:13:11 +0000 (14:13 -0400)
Makes it so that validate-autorelease can clone itself via Gerrit patch.

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

index 3cd9c2cb82d95ff68387785d2840e66dca6961d6..590c2188f6b680b9feda8ae504479c48fb153a8d 100644 (file)
       - git:
           url: '$CLONE_URL'
           credentials-id: 'opendaylight-jenkins-ssh'
-          refspec: ''
+          refspec: '$GERRIT_REFSPEC'
           branches:
             - 'origin/{branch}'
           skip-tag: true
           submodule:
             recursive: true
             timeout: 60
+          choosing-strategy: gerrit
 
     wrappers:
       - opendaylight-infra-wrappers: