ci: Fix file ownership before archiving

Several log files in `/var/log` are owned by users other than root.
From outside the user namespace, these files are inaccessible to the
unprivileged user, so we need to change their ownership before we can
archive them.
lib/main
Dustin 2024-12-14 14:01:59 -06:00
parent c1badb2d1e
commit 9377c9423c
1 changed files with 1 additions and 0 deletions

1
ci/Jenkinsfile vendored
View File

@ -60,6 +60,7 @@ pipeline {
post { post {
failure { failure {
sh 'unshare -Ur --map-auto chown root:root -R tmp log'
dir('tmp/portage') { dir('tmp/portage') {
archiveArtifacts '*/*/temp/*.log' archiveArtifacts '*/*/temp/*.log'
} }