ci: Archive logs from /var/log too

When `crossdev` fails, we need to read the logs it put in `/var/log`.
lib/main
Dustin 2024-12-14 13:53:19 -06:00
parent b7fdaa93ac
commit d79bf8526e
2 changed files with 3 additions and 1 deletions

1
ci/Jenkinsfile vendored
View File

@ -63,6 +63,7 @@ pipeline {
dir('tmp/portage') { dir('tmp/portage') {
archiveArtifacts '*/*/temp/*.log' archiveArtifacts '*/*/temp/*.log'
} }
archiveArtifacts 'log/**/*'
} }
} }
} }

View File

@ -6,10 +6,11 @@ buildah_run_script() {
shift shift
script=$(readlink -f "$1") script=$(readlink -f "$1")
shift shift
mkdir -p binpkgs tmp mkdir -p binpkgs log tmp
buildah run \ buildah run \
--mount type=cache,target=/var/db/repos/gentoo \ --mount type=cache,target=/var/db/repos/gentoo \
--mount type=cache,target=/var/cache \ --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}"/tmp,target=/var/tmp,rw,z \
--mount type=bind,src="${PWD}"/binpkgs,target=/var/cache/binpkgs,rw,z \ --mount type=bind,src="${PWD}"/binpkgs,target=/var/cache/binpkgs,rw,z \
--mount type=bind,src="${script}",target=/run/script,ro,z \ --mount type=bind,src="${script}",target=/run/script,ro,z \