This allows the job to handle branch '*' more easily..
Change-Id: I65ef5886af59ec85841734f03bfac781194f780a
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
<userRemoteConfigs>
<hudson.plugins.git.UserRemoteConfig>
<name>origin</name>
- <refspec/>
+ <refspec>$GERRIT_REFSPEC</refspec>
<url>$GIT_URL/$PROJECT</url>
<credentialsId>test-credential</credentialsId>
</hudson.plugins.git.UserRemoteConfig>
</userRemoteConfigs>
<branches>
<hudson.plugins.git.BranchSpec>
- <name>refs/heads/master</name>
+ <name>refs/heads/$GERRIT_BRANCH</name>
</hudson.plugins.git.BranchSpec>
</branches>
<excludedUsers/>
scm:
- lf-infra-gerrit-scm:
- branch: '{branch}'
+ branch: '$GERRIT_BRANCH'
jenkins-ssh-credential: '{jenkins-ssh-credential}'
git-url: '{git-url}'
- refspec: ''
+ refspec: '$GERRIT_REFSPEC'
submodule-recursive: '{submodule-recursive}'
choosing-strategy: default