From 48a8c9a2795176d29fc1a2dd23b3dc1ae1066063 Mon Sep 17 00:00:00 2001 From: Jonathan Lebon Date: Tue, 30 Jul 2019 12:07:19 -0400 Subject: [PATCH] Jenkinsfile: compress qcow2 before archiving on failure 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] https://github.com/coreos/coreos-assembler/issues/668 --- Jenkinsfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 0f1eed42d..c88946837 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -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 }