Skip to content

Commit

Permalink
Remove duplicate code (#1058)
Browse files Browse the repository at this point in the history
Those code are forcely merged to PR branch

Signed-off-by: Sophia Guo <sophia.gwf@gmail.com>
  • Loading branch information
sophia-guo authored Jun 26, 2024
1 parent 7279351 commit e960c25
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions pipelines/build/common/build_base_file.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -968,21 +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 any tap files (if any tests ran that produce them) from the build job as a single tar file
context.sh "find target/${config.TARGET_OS}/${config.ARCHITECTURE}/${config.VARIANT}/AQAvitTaps -type f -name '*.tap' -exec tar -czf target/${config.TARGET_OS}/${config.ARCHITECTURE}/${config.VARIANT}/AQAvitTaps/AQAvitTapFiles.tar.gz {} + "
try {
// Archive if any tap files were found
if (context.fileExists("target/${config.TARGET_OS}/${config.ARCHITECTURE}/${config.VARIANT}/AQAvitTaps/AQAvitTapFiles.tar.gz")) {
context.timeout(time: pipelineTimeouts.ARCHIVE_ARTIFACTS_TIMEOUT, unit: 'HOURS') {
context.archiveArtifacts artifacts: "target/${config.TARGET_OS}/${config.ARCHITECTURE}/${config.VARIANT}/AQAvitTaps/AQAvitTapFiles.tar.gz"
}
} else {
context.println "No AQAvit tap files found to archive for target/${config.TARGET_OS}/${config.ARCHITECTURE}/${config.VARIANT}"
}
} 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

0 comments on commit e960c25

Please sign in to comment.