]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-build.git/commitdiff
kernel: do not fetch git tags 838/head
authorIlya Dryomov <idryomov@gmail.com>
Tue, 22 Aug 2017 08:57:12 +0000 (10:57 +0200)
committerIlya Dryomov <idryomov@gmail.com>
Tue, 22 Aug 2017 10:47:18 +0000 (12:47 +0200)
After a recent jenkins/plugins update, jenkins started listing tags and
attempting git rev-parse ^{commit} on them:

  Seen branch in repository origin/wip-tighter-types
  Seen 39 remote branches
  > git tag -l # timeout=10
  > git rev-parse refs/tags/v4.7-rc7^{commit} # timeout=10
  > git rev-parse refs/tags/v2.6.30-rc7^{commit} # timeout=10

On the Linux kernel repo, this eventually fails with:

  > git rev-parse refs/tags/v2.6.11^{commit} # timeout=10
  FATAL: Command "git rev-parse refs/tags/v2.6.11^{commit}" returned status code 128:
  stdout: refs/tags/v2.6.11^{commit}
  stderr: error: refs/tags/v2.6.11^{commit}: expected commit type, but
  the object dereferences to tree type

Only "trigger" jobs seem to be affected, but we don't really need tags,
so don't fetch them for both kernel-trigger and kernel.

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

index 4bebdc023618994fcb52c1ddfe6eec414ff5aad1..4c4b9c9065ba7eb456d2ec466ef6ebb70483a2dd 100644 (file)
@@ -26,6 +26,7 @@
             - 'origin/testing*'
             - 'origin/master*'
             - 'origin/for-linus'
+          do-not-fetch-tags: true
           skip-tag: true
           timeout: 20
           wipe-workspace: true
index 07cb52cf4197c82c0c6031f35484505694fb0d12..a373b41621cf4bf0883f1d92d0456a457e0270fd 100644 (file)
@@ -86,6 +86,7 @@ If this is checked, then the binaries will be built and pushed to chacra even if
           url: https://github.com/ceph/ceph-client.git
           branches:
             - $BRANCH
+          do-not-fetch-tags: true
           skip-tag: true
           timeout: 20
           shallow-clone: true