Skip to content

Commit

Permalink
Archive all taps after parallel run (#1033)
Browse files Browse the repository at this point in the history
Signed-off-by: Sophia Guo <[email protected]>
Co-authored-by: Martijn Verburg <[email protected]>
  • Loading branch information
sophia-guo and karianna authored May 24, 2024
1 parent 91da3b4 commit c999e31
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions pipelines/build/common/build_base_file.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -968,16 +968,6 @@ 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)
Expand Down Expand Up @@ -1006,6 +996,17 @@ class Builder implements Serializable {
}
}
context.parallel jobs
context.node('worker') {
// 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...")
}
}
// publish to github if needed
// Don't publish release automatically
if (publish || release) {
Expand Down

0 comments on commit c999e31

Please sign in to comment.