ci: archive build logs on failure

Dustin 2024-12-29 12:08:09 -06:00
parent f74daa8e22
commit 3da17134f2
2 changed files with 8 additions and 0 deletions

5
ci/Jenkinsfile vendored
View File

@ -34,5 +34,10 @@ pipeline {
archiveArtifacts '*' archiveArtifacts '*'
} }
} }
failure {
dir('/var/tmp/portage') {
archiveArtifacts '*/*/temp/*.log'
}
}
} }
} }

View File

@ -32,6 +32,9 @@ spec:
subPath: distfiles subPath: distfiles
- mountPath: /var/db/repos/gentoo - mountPath: /var/db/repos/gentoo
name: portage name: portage
- mountPath: /var/tmp
name: workspace-volume
subPath: tmp
hostUsers: false hostUsers: false
volumes: volumes:
- name: binpkgs - name: binpkgs