Skip to content

Commit 38b1fde

Browse files
committed
{kola,kolaTestIso}: make the collection of logs non-fatal
In case a test blew up for another reason let's not make the collection of the logs tank the entire run.
1 parent 380ffa5 commit 38b1fde

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

vars/kola.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ def call(params = [:]) {
141141
// sanity check kola actually ran and dumped its output
142142
shwrap("cosa shell -- test -d ${outputDir}/${id}")
143143
// collect the output
144-
shwrap("cosa shell -- tar -c --xz ${outputDir}/${id} > ${env.WORKSPACE}/${id}-${token}.tar.xz")
144+
shwrap("cosa shell -- tar -c --xz ${outputDir}/${id} > ${env.WORKSPACE}/${id}-${token}.tar.xz || :")
145145
archiveArtifacts allowEmptyArchive: true, artifacts: "${id}-${token}.tar.xz"
146146
}
147147
}

vars/kolaTestIso.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ def call(params = [:]) {
9191
parallel(testIsoRuns2)
9292
} finally {
9393
for (id in ids) {
94-
shwrap("cosa shell -- tar -c --xz ${outputDir}/${id} > ${env.WORKSPACE}/${id}-${token}.tar.xz")
94+
shwrap("cosa shell -- tar -c --xz ${outputDir}/${id} > ${env.WORKSPACE}/${id}-${token}.tar.xz || :")
9595
archiveArtifacts allowEmptyArchive: true, artifacts: "${id}-${token}.tar.xz"
9696
}
9797
}

0 commit comments

Comments
 (0)