Skip to content

Commit

Permalink
Correct publish job url (#1176)
Browse files Browse the repository at this point in the history
* Amending the publish output url so we can find the job output

Signed-off-by: Adam Farley <[email protected]>

* Tweaking code that checks for empty tip releases

Signed-off-by: Adam Farley <[email protected]>

* Amending jenkins path for publish job

Signed-off-by: Adam Farley <[email protected]>

---------

Signed-off-by: Adam Farley <[email protected]>
  • Loading branch information
adamfarley authored Jan 6, 2025
1 parent 7ea3ed1 commit 6688973
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tools/nightly_build_and_test_stats.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ def getBuildIDsByPlatform(String trssUrl, String jdkVersion, String srcTag, Map

// Also, check if the pipeline published any successful builds overall.
if (onePipelineBuild.buildName.contains("refactor_openjdk_release_tool") && onePipelineBuild.status.contains("Done")) {
def wgetUrlForReleaseTool = "${onePipelineBuild.buildUrl}/consoleText"
def wgetUrlForReleaseTool = "${onePipelineBuild.url}/job/${onePipelineBuild.buildName}/${onePipelineBuild.buildNum}/consoleText"
if (onePipelineBuild.buildOutputId != null) {
wgetUrlForReleaseTool = "${trssURL}/api/getOutputById?id=${onePipelineBuild.buildOutputId}"
}
Expand Down Expand Up @@ -677,7 +677,7 @@ node('worker') {
}

// Check tip_releases status, by querying binaries repo as API does not server the "tip" dev releases
if (tipReleases.size() > 0) {
if ("${params.TIP_RELEASES}".trim() != "") {
tipReleases.each { tipRelease ->
def latestOpenjdkBuild = getLatestOpenjdkBuildTag(tipRelease)
def tipVersion = tipRelease.replaceAll("[a-z]","").toInteger()
Expand Down Expand Up @@ -708,7 +708,7 @@ node('worker') {
def pipelinesOfInterest = ""
def allReleases = []
allReleases.addAll(featureReleases)
if (tipReleases.size() > 0) {
if ("${params.TIP_RELEASES}".trim() != "") {
allReleases.addAll(tipReleases)
}
if ("${params.NON_TAG_BUILD_RELEASES}".trim() != "") {
Expand Down Expand Up @@ -911,7 +911,7 @@ node('worker') {
echo '-------------- Latest pipeline health report ------------------'
def allReleases = []
allReleases.addAll(featureReleases)
if (tipReleases.size() > 0) {
if ("${params.TIP_RELEASES}".trim() != "") {
allReleases.addAll(tipReleases)
}
if (("${params.NON_TAG_BUILD_RELEASES}".trim() != "")) {
Expand Down

0 comments on commit 6688973

Please sign in to comment.