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
parent
c1badb2d1e
commit
9377c9423c
|
@ -60,6 +60,7 @@ pipeline {
|
|||
|
||||
post {
|
||||
failure {
|
||||
sh 'unshare -Ur --map-auto chown root:root -R tmp log'
|
||||
dir('tmp/portage') {
|
||||
archiveArtifacts '*/*/temp/*.log'
|
||||
}
|
||||
|
|
Reference in New Issue