]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-build.git/commitdiff
ceph-source-dist: Decompress the bzip2 to stdout 2561/head
authorDavid Galloway <david.galloway@ibm.com>
Wed, 1 Apr 2026 20:26:13 +0000 (16:26 -0400)
committerDavid Galloway <david.galloway@ibm.com>
Wed, 1 Apr 2026 20:26:13 +0000 (16:26 -0400)
The original bunzip didn't like the `ln ceph-$ceph_version_tarball.$extension dist/` hard link.

bunzip2 refuses to decompress in-place when a file has multiple hard links, because doing so would silently corrupt the other link

Signed-off-by: David Galloway <david.galloway@ibm.com>
ceph-source-dist/build/Jenkinsfile

index 7a2c961c9679835145718ccbb2f57e590f264a36..dd389f056b265d1fff587737d44d1fd1c9a08d8b 100644 (file)
@@ -104,8 +104,7 @@ pipeline {
 
                 echo "Creating tar.gz for upstream release"
                 pushd dist
-                bunzip2 ceph-$ceph_version_tarball.$extension
-                gzip ceph-$ceph_version_tarball.tar.gz
+                bzip2 -dc ceph-$ceph_version_tarball.$extension | gzip > ceph-$ceph_version_tarball.tar.gz
                 popd
               else
                 echo "BRANCH=${BRANCH}" > dist/branch