Skip to content

Commit

Permalink
Add release Tap collection and upload url
Browse files Browse the repository at this point in the history
  • Loading branch information
sophia-guo committed Nov 5, 2024
1 parent bb6714e commit e638451
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions pipelines/build/common/build_base_file.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -1034,6 +1034,19 @@ class Builder implements Serializable {
if (publish || release) {
if (release) {
context.println 'NOT PUBLISHING RELEASE AUTOMATICALLY, PLEASE SEE THE RERUN RELEASE PUBLISH BINARIES LINKS'
releaseSummary.appendText('</ul>', false)
releaseSummary.appendText("<b>TAPs COLLECTION and REALEASE:</b><ul>")
def urlJobName = URLEncoder.encode("${env.JOB_NAME}", 'UTF-8')
def tapCollectionUrl = "${context.HUDSON_URL}job/TAP_Collection/parambuild?Release_PipelineJob_Name=${urlJobName}"
releaseSummary.appendText("<li><a href=${tapCollectionUrl}> RELEASE TAPs COLLECTION</a></li>")
def String releaseToolUrl = "${context.HUDSON_URL}job/build-scripts/job/release/job/refactor_openjdk_release_tool/parambuild?RELEASE=${release}}&UPSTREAM_JOB_NAME=TAP_Collection&UPLOAD_TESTRESULTS_ONLY=true&dryrun=false"
def tag = publishName
tag = URLEncoder.encode(tag, 'UTF-8')
def artifactsToCopy = '**/AQAvitTapFiles.tar.gz'
artifactsToCopy = URLEncoder.encode(artifactsToCopy, 'UTF-8')
def javaVersion=determineReleaseToolRepoVersion()
releaseToolUrl += "&VERSION=${javaVersion}&TAG=${tag}&ARTIFACTS_TO_COPY=${artifactsToCopy}"
releaseSummary.appendText("<li><a href=${releaseToolUrl}> RELEASE TEST RESULTS TAPs Link</a></li>")
} else {
try {
context.timeout(time: pipelineTimeouts.PUBLISH_ARTIFACTS_TIMEOUT, unit: 'HOURS') {
Expand Down

0 comments on commit e638451

Please sign in to comment.