From c0941a422e47ebbece4b1545fd5300085cc19a09 Mon Sep 17 00:00:00 2001 From: Sophia Guo Date: Tue, 7 May 2024 13:29:15 -0400 Subject: [PATCH 1/2] Add archive taps as a single jar file Tap files per platforms keep as before. Signed-off-by: Sophia Guo --- pipelines/build/common/build_base_file.groovy | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/pipelines/build/common/build_base_file.groovy b/pipelines/build/common/build_base_file.groovy index de0469e77..b4f78dda9 100644 --- a/pipelines/build/common/build_base_file.groovy +++ b/pipelines/build/common/build_base_file.groovy @@ -968,6 +968,16 @@ class Builder implements Serializable { throw new Exception("[ERROR] Archive artifact timeout (${pipelineTimeouts.ARCHIVE_ARTIFACTS_TIMEOUT} HOURS) for ${downstreamJobName}has been reached. Exiting...") } + //Archive tap files as a single tar file + context.sh "find . -type f -name '*.tap' -exec tar -czf AQAvitTapFiles.tar.gz {} + " + try { + context.timeout(time: pipelineTimeouts.ARCHIVE_ARTIFACTS_TIMEOUT, unit: 'HOURS') { + context.archiveArtifacts artifacts: "AQAvitTapFiles.tar.gz" + } + } catch (FlowInterruptedException e) { + throw new Exception("[ERROR] Archive AQAvitTapFiles.tar.gz timeout Exiting...") + } + copyArtifactSuccess = true if (release) { def (String releaseToolUrl, String releaseComment) = publishBinary(config) From 4716f31ca6b634a997cca449affaa6b32293e70d Mon Sep 17 00:00:00 2001 From: Martijn Verburg Date: Thu, 9 May 2024 14:40:11 +1200 Subject: [PATCH 2/2] Update pipelines/build/common/build_base_file.groovy --- pipelines/build/common/build_base_file.groovy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pipelines/build/common/build_base_file.groovy b/pipelines/build/common/build_base_file.groovy index b4f78dda9..4d335bf2c 100644 --- a/pipelines/build/common/build_base_file.groovy +++ b/pipelines/build/common/build_base_file.groovy @@ -968,7 +968,7 @@ class Builder implements Serializable { throw new Exception("[ERROR] Archive artifact timeout (${pipelineTimeouts.ARCHIVE_ARTIFACTS_TIMEOUT} HOURS) for ${downstreamJobName}has been reached. Exiting...") } - //Archive tap files as a single tar file + // Archive tap files as a single tar file context.sh "find . -type f -name '*.tap' -exec tar -czf AQAvitTapFiles.tar.gz {} + " try { context.timeout(time: pipelineTimeouts.ARCHIVE_ARTIFACTS_TIMEOUT, unit: 'HOURS') {