]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-build.git/commitdiff
kernel: use raw xml for configuring scm module 858/head
authorIlya Dryomov <idryomov@gmail.com>
Fri, 1 Sep 2017 16:14:30 +0000 (18:14 +0200)
committerIlya Dryomov <idryomov@gmail.com>
Fri, 1 Sep 2017 16:41:15 +0000 (18:41 +0200)
kernel-trigger job needs to specify do-not-fetch-tags, otherwise
cloning fails, "No changes" is reported and nothing gets triggered (see
commit b34f8fa ("kernel: do not fetch git tags") for more details).
do-not-fetch-tags was added to jenkins-job-builder in commit
badab0264717 ("Add do-not-fetch-tags to CloneOption for Git"), which
isn't in any tag.  The version we get from pypi, 2.0.0.0b2, simply
ignores it, leaving us with no kernel builds.

Use raw xml generated with jenkins-job-builder's master to get
<noTags>true</noTags> up there after all.

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
kernel-trigger/config/definitions/kernel-trigger.yml
kernel/config/definitions/kernel.yml

index 4c4b9c9065ba7eb456d2ec466ef6ebb70483a2dd..d91da7ece8700a4728df7f4c3a5fcd2a01f184df 100644 (file)
       - github
 
     scm:
-      - git:
-          url: https://github.com/ceph/ceph-client.git
-          branches:
-            - 'origin/testing*'
-            - 'origin/master*'
-            - 'origin/for-linus'
-          do-not-fetch-tags: true
-          skip-tag: true
-          timeout: 20
-          wipe-workspace: true
+    - raw:
+        xml: |
+          <scm class="hudson.plugins.git.GitSCM">
+            <configVersion>2</configVersion>
+            <userRemoteConfigs>
+              <hudson.plugins.git.UserRemoteConfig>
+                <name>origin</name>
+                <refspec>+refs/heads/*:refs/remotes/origin/*</refspec>
+                <url>https://github.com/ceph/ceph-client.git</url>
+              </hudson.plugins.git.UserRemoteConfig>
+            </userRemoteConfigs>
+            <branches>
+              <hudson.plugins.git.BranchSpec>
+                <name>origin/testing*</name>
+              </hudson.plugins.git.BranchSpec>
+              <hudson.plugins.git.BranchSpec>
+                <name>origin/master*</name>
+              </hudson.plugins.git.BranchSpec>
+              <hudson.plugins.git.BranchSpec>
+                <name>origin/for-linus</name>
+              </hudson.plugins.git.BranchSpec>
+            </branches>
+            <disableSubmodules>false</disableSubmodules>
+            <recursiveSubmodules>false</recursiveSubmodules>
+            <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations>
+            <remotePoll>false</remotePoll>
+            <gitTool>Default</gitTool>
+            <submoduleCfg class="list"/>
+            <reference/>
+            <gitConfigName/>
+            <gitConfigEmail/>
+            <extensions>
+              <hudson.plugins.git.extensions.impl.CloneOption>
+                <shallow>false</shallow>
+                <noTags>true</noTags>
+                <timeout>20</timeout>
+              </hudson.plugins.git.extensions.impl.CloneOption>
+              <hudson.plugins.git.extensions.impl.CheckoutOption>
+                <timeout>20</timeout>
+              </hudson.plugins.git.extensions.impl.CheckoutOption>
+              <hudson.plugins.git.extensions.impl.WipeWorkspace/>
+            </extensions>
+          </scm>
 
     builders:
       - trigger-builds:
index a373b41621cf4bf0883f1d92d0456a457e0270fd..6dc9dee3200d23723926e60bdae3ae7a55a4d8af 100644 (file)
@@ -82,15 +82,43 @@ If this is checked, then the binaries will be built and pushed to chacra even if
             - ARCHS
 
     scm:
-      - git:
-          url: https://github.com/ceph/ceph-client.git
-          branches:
-            - $BRANCH
-          do-not-fetch-tags: true
-          skip-tag: true
-          timeout: 20
-          shallow-clone: true
-          wipe-workspace: true
+    - raw:
+        xml: |
+          <scm class="hudson.plugins.git.GitSCM">
+            <configVersion>2</configVersion>
+            <userRemoteConfigs>
+              <hudson.plugins.git.UserRemoteConfig>
+                <name>origin</name>
+                <refspec>+refs/heads/*:refs/remotes/origin/*</refspec>
+                <url>https://github.com/ceph/ceph-client.git</url>
+              </hudson.plugins.git.UserRemoteConfig>
+            </userRemoteConfigs>
+            <branches>
+              <hudson.plugins.git.BranchSpec>
+                <name>$BRANCH</name>
+              </hudson.plugins.git.BranchSpec>
+            </branches>
+            <disableSubmodules>false</disableSubmodules>
+            <recursiveSubmodules>false</recursiveSubmodules>
+            <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations>
+            <remotePoll>false</remotePoll>
+            <gitTool>Default</gitTool>
+            <submoduleCfg class="list"/>
+            <reference/>
+            <gitConfigName/>
+            <gitConfigEmail/>
+            <extensions>
+              <hudson.plugins.git.extensions.impl.CloneOption>
+                <shallow>true</shallow>
+                <noTags>true</noTags>
+                <timeout>20</timeout>
+              </hudson.plugins.git.extensions.impl.CloneOption>
+              <hudson.plugins.git.extensions.impl.CheckoutOption>
+                <timeout>20</timeout>
+              </hudson.plugins.git.extensions.impl.CheckoutOption>
+              <hudson.plugins.git.extensions.impl.WipeWorkspace/>
+            </extensions>
+          </scm>
 
     builders:
       - shell: |