From ab12412b704a2ba1a01463644c1197b9ff0eb408 Mon Sep 17 00:00:00 2001 From: Andrew Leonard <31470007+andrew-m-leonard@users.noreply.github.com> Date: Wed, 27 Sep 2023 10:26:14 +0100 Subject: [PATCH] Daily build health stats exclude -ga from upstream tag search (#821) * Exclude -ga from upstream tag search Signed-off-by: Andrew Leonard * Exclude -ga from upstream tag search Signed-off-by: Andrew Leonard --------- Signed-off-by: Andrew Leonard --- tools/nightly_build_and_test_stats.groovy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/nightly_build_and_test_stats.groovy b/tools/nightly_build_and_test_stats.groovy index 5f73de596..9c3c3f7a5 100644 --- a/tools/nightly_build_and_test_stats.groovy +++ b/tools/nightly_build_and_test_stats.groovy @@ -24,7 +24,7 @@ import java.time.temporal.ChronoUnit def getLatestOpenjdkBuildTag(String version) { def openjdkRepo = "https://github.com/openjdk/${version}.git" - def latestTag = sh(returnStdout: true, script:"git ls-remote --sort=-v:refname --tags ${openjdkRepo} | grep -v '\\^{}' | tr -s '\\t ' ' ' | cut -d' ' -f2 | sed \"s,refs/tags/,,\" | sort -V -r | head -1 | tr -d '\\n'") + def latestTag = sh(returnStdout: true, script:"git ls-remote --sort=-v:refname --tags ${openjdkRepo} | grep -v '\\^{}' | tr -s '\\t ' ' ' | cut -d' ' -f2 | sed \"s,refs/tags/,,\" | grep -v '\\-ga' | sort -V -r | head -1 | tr -d '\\n'") echo "latest upstream openjdk/${version} tag = ${latestTag}" return latestTag