Skip to content

Commit

Permalink
Jenkinsfile: compress qcow2 before archiving on failure
Browse files Browse the repository at this point in the history
Use cosa to compress the qcow2, so we get multi-threading, before
archiving. Otherwise, we risk overloading the Jenkins master PVC before
too long.

Another strategy eventually would be to still upload to S3 (see [1]
which is related to this). But even then, we'd still want to compress
first.

[1] coreos/coreos-assembler#668
  • Loading branch information
jlebon committed Jul 30, 2019
1 parent f71525f commit 48a8c9a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,8 @@ podTemplate(cloud: 'openshift', label: 'coreos-assembler', yaml: pod, defaultCon
// archive the image if the tests failed
def report = readJSON file: "tmp/kola/reports/report.json"
if (report["result"] != "PASS") {
archiveArtifacts "builds/latest/**/*.qcow2"
utils.shwrap("coreos-assembler compress --compressor xz")
archiveArtifacts "builds/latest/**/*.qcow2.xz"
currentBuild.result = 'FAILURE'
return
}
Expand Down

0 comments on commit 48a8c9a

Please sign in to comment.