diff --git a/.ci/Jenkinsfile b/.ci/Jenkinsfile index 4271a7bfe0193e1d1397646e199df1a23513b87b..61a3d1cf7ee7580c85072cd9cb2ca2def23c3467 100755 --- a/.ci/Jenkinsfile +++ b/.ci/Jenkinsfile @@ -62,6 +62,7 @@ pipeline { environment { YASHCHIKI_INSTALL = "${WORKSPACE}/yashchiki" YASHCHIKI_META_DIR = "${WORKSPACE}/meta" + YASHCHIKI_TMPDIR = "/tmp/${env.NODE_NAME}/yashchiki-tmp-dir" } stages { @@ -129,7 +130,7 @@ pipeline { sh "python3 bin/yashchiki ${CONTAINER_STYLE} ${WORKSPACE}/spack ${YASHCHIKI_IMAGE_NAME} " + "--log-dir=log " + - "--tmpdir=/tmp/${env.NODE_NAME}/yashchiki-tmp-dir " + + "--tmpdir=${YASHCHIKI_TMPDIR} " + "--meta-dir=${YASHCHIKI_META_DIR} " + "--caches-dir=${YASHCHIKI_CACHES_ROOT} " + "--sandboxes-dir=${YASHCHIKI_SANDBOXES} " + @@ -169,6 +170,9 @@ pipeline { archiveArtifacts(artifacts: "errors_concretization.log", allowEmptyArchive: true) archiveArtifacts(artifacts: "sandboxes/*/opt/spack_specs/*.yaml", allowEmptyArchive: true) archiveArtifacts(artifacts: "log/*.log", allowEmptyArchive: true) + // zip spack stages and archive them + sh "tar -C ${YASHCHIKI_TMPDIR}/tmp_spack/tmp/ -czf spack_stage.tar.gz spack-stage" + archiveArtifacts(artifacts: "spack_stage.tar.gz", allowEmptyArchive: true) } } }