diff --git a/ci/Jenkinsfile b/ci/Jenkinsfile index 3ab5c33..a6ea61c 100644 --- a/ci/Jenkinsfile +++ b/ci/Jenkinsfile @@ -63,6 +63,7 @@ pipeline { dir('tmp/portage') { archiveArtifacts '*/*/temp/*.log' } + archiveArtifacts 'log/**/*' } } } diff --git a/lib/common.sh b/lib/common.sh index 15edcd1..21f1463 100644 --- a/lib/common.sh +++ b/lib/common.sh @@ -6,10 +6,11 @@ buildah_run_script() { shift script=$(readlink -f "$1") shift - mkdir -p binpkgs tmp + mkdir -p binpkgs log tmp buildah run \ --mount type=cache,target=/var/db/repos/gentoo \ --mount type=cache,target=/var/cache \ + --mount type=bind,src="${PWD}"/log,target=/var/log,rw,z \ --mount type=bind,src="${PWD}"/tmp,target=/var/tmp,rw,z \ --mount type=bind,src="${PWD}"/binpkgs,target=/var/cache/binpkgs,rw,z \ --mount type=bind,src="${script}",target=/run/script,ro,z \