Revert refspec change breaking submodule build 78/6978/1
authorThanh Ha <thanh.ha@linuxfoundation.org>
Thu, 19 Oct 2017 14:02:22 +0000 (10:02 -0400)
committerThanh Ha <thanh.ha@linuxfoundation.org>
Thu, 19 Oct 2017 14:12:30 +0000 (14:12 +0000)
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)

.jjb-test/expected-xml/gerrit-rtd-rtd-verify-master
jjb/lf-rtd-jobs.yaml

index 3d8f493..08dccd8 100644 (file)
@@ -81,7 +81,7 @@ For example '&lt;1.0.0' or '&gt;=1.0.0,&lt;2.0.0'.
     <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>
index 8e9def9..99d0a36 100644 (file)
           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