Reverts change I65ef5886af59ec85841734f03bfac781194f780a which
introduced a breaking change for submodule projects inside a docs
project. Docs builds have a separate script which handles fetching
patches from Gerrit so should not be setting the refspec in the SCM
plugin.
Change-Id: I657a473a274b2831ad1470bb4895a2c8bcf3c92f
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
(cherry picked from commit
85ebe3be68d3cc20f990e1f4adfd254b08f8c1f8)
<userRemoteConfigs>
<hudson.plugins.git.UserRemoteConfig>
<name>origin</name>
- <refspec>$GERRIT_REFSPEC</refspec>
+ <refspec/>
<url>$GIT_URL/$PROJECT</url>
<credentialsId>test-credential</credentialsId>
</hudson.plugins.git.UserRemoteConfig>
branch: '$GERRIT_BRANCH'
jenkins-ssh-credential: '{jenkins-ssh-credential}'
git-url: '{git-url}'
- refspec: '$GERRIT_REFSPEC'
+ refspec: '' # Leave blank!! A later script will handle fetching
submodule-recursive: '{submodule-recursive}'
choosing-strategy: default