From: Zack Cerza Date: Thu, 6 Mar 2025 23:34:25 +0000 (-0700) Subject: ceph-dev-pipeline: Store sccache logs X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=435b94e8b6b7af015852d237f91f35d7719a7f92;p=ceph-build.git ceph-dev-pipeline: Store sccache logs There is an issue where invocations of archiveArtifacts in parallel branches of the pipeline overwrite each other. Signed-off-by: Zack Cerza --- diff --git a/ceph-dev-pipeline/build/Jenkinsfile b/ceph-dev-pipeline/build/Jenkinsfile index fa70a6ef..a23c0783 100644 --- a/ceph-dev-pipeline/build/Jenkinsfile +++ b/ceph-dev-pipeline/build/Jenkinsfile @@ -362,6 +362,8 @@ pipeline { sh '''#!/bin/bash echo "SCCACHE=$SCCACHE" >> .env echo "SCCACHE_CONF=/ceph/sccache.conf" >> .env + echo "SCCACHE_ERROR_LOG=/ceph/sccache_log.txt" >> .env + echo "SCCACHE_LOG=debug" >> .env echo "AWS_ACCESS_KEY_ID=$AWS_ACCESS_KEY_ID" >> .env echo "AWS_SECRET_ACCESS_KEY=$AWS_SECRET_ACCESS_KEY" >> .env ''' @@ -411,6 +413,20 @@ pipeline { } } post { + always { + script { + sh """ + if [ -f "${env.WORKSPACE}/dist/ceph/sccache_log.txt" ]; then + ln dist/ceph/sccache_log.txt sccache_log_${env.DIST}_${env.ARCH}.txt + fi + """ + archiveArtifacts( + artifacts: 'sccache_log*.txt', + allowEmptyArchive: true, + fingerprint: true, + ) + } + } unsuccessful { script { def os = get_os_info(env.DIST)