From 11a83a9dabc33e7c2eeffae912f5cad2abce12e5 Mon Sep 17 00:00:00 2001 From: "Dustin C. Hatch" Date: Sun, 29 Dec 2024 12:08:09 -0600 Subject: [PATCH] ci: archive build logs on failure --- ci/Jenkinsfile | 5 +++++ ci/podTemplate.yaml | 3 +++ 2 files changed, 8 insertions(+) diff --git a/ci/Jenkinsfile b/ci/Jenkinsfile index 1270b8c..adcf8e4 100644 --- a/ci/Jenkinsfile +++ b/ci/Jenkinsfile @@ -29,5 +29,10 @@ pipeline { archiveArtifacts '*' } } + failure { + dir('/var/tmp/portage') { + archiveArtifacts '*/*/temp/*.log' + } + } } } diff --git a/ci/podTemplate.yaml b/ci/podTemplate.yaml index 51cd9d8..a0f1c5c 100644 --- a/ci/podTemplate.yaml +++ b/ci/podTemplate.yaml @@ -32,6 +32,9 @@ spec: subPath: distfiles - mountPath: /var/db/repos/gentoo name: portage + - mountPath: /var/tmp + name: workspace-volume + subPath: tmp hostUsers: false volumes: - name: binpkgs