]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-build.git/commitdiff
ceph-dev-pipeline: Fix archive-skipping 2445/head
authorZack Cerza <zack@cerza.org>
Thu, 18 Sep 2025 18:22:56 +0000 (12:22 -0600)
committerZack Cerza <zack@cerza.org>
Thu, 18 Sep 2025 18:22:56 +0000 (12:22 -0600)
If sccache is supposed to be enabled, but isn't - for example due to the feature
not being backported - we were still attempting to archive, and hanging. Check
for the existence of the file directly.

Signed-off-by: Zack Cerza <zack@cerza.org>
ceph-dev-pipeline/build/Jenkinsfile

index 78609acb423ab16f4ccf6d66613758817f8a0195..5ee07f38210815c1097bbfb4bf1d644e895ffc59 100644 (file)
@@ -505,7 +505,7 @@ pipeline {
             post {
               always {
                 script {
-                  if (env.SCCACHE?.trim() == "true") {
+                  if (fileExists('dist/ceph/sccache_log.txt')) {
                     sh """
                       if [ -f "${env.WORKSPACE}/dist/ceph/sccache_log.txt" ]; then
                         ln dist/ceph/sccache_log.txt sccache_log_${env.DIST}_${env.ARCH}_${env.FLAVOR}.txt