Skip to content
Snippets Groups Projects
Commit 4b455326 authored by Jakob Kaiser's avatar Jakob Kaiser
Browse files

feat: archive spack stages

Change-Id: Iec5753c7ef5703f008e574cb77611206e1bb4707
parent 89797ee9
No related branches found
No related tags found
No related merge requests found
......@@ -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)
}
}
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment