From 8d3212cecad8d03bc026c61e882d3ce1044b6aa9 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 f4bc25b..97319d3 100644 --- a/ci/podTemplate.yaml +++ b/ci/podTemplate.yaml @@ -31,6 +31,9 @@ spec: subPath: distfiles - mountPath: /var/db/repos/gentoo name: portage + - mountPath: /var/tmp + name: workspace-volume + subPath: tmp hostUsers: false volumes: - name: binpkgs