Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ensure correct variant used for querying Temurin build jobs #264

Merged
merged 1 commit into from
Mar 9, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions tools/nightly_build_and_test_stats.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -32,17 +32,18 @@ node ("master") {
def testStats = []

stage("getPipelineStatus") {
if (variant == "temurin") {
variant = "hotspot"
def apiVariant = variant
sxa marked this conversation as resolved.
Show resolved Hide resolved
if (apiVariant == "temurin") {
apiVariant = "hotspot"
}
if (variant == "hotspot") { // hotspot only for now
if (apiVariant == "hotspot") { // hotspot only for now
// Determine nightly pipeline health by looking at published assets.
// In particular, look at one data set for published binaries (Linux x64).
// If no published assets happened the last 4 days, the nightly pipeline
// is considered unhealthy.
// TODO: account for disabled nightly pipelines
featureReleases.each { featureRelease ->
def assets = sh(returnStdout: true, script: "wget -q -O - '${apiUrl}/v3/assets/feature_releases/${featureRelease}/ea?image_type=jdk&os=linux&architecture=x64&jvm_impl=${variant}'")
def assets = sh(returnStdout: true, script: "wget -q -O - '${apiUrl}/v3/assets/feature_releases/${featureRelease}/ea?image_type=jdk&os=linux&architecture=x64&jvm_impl=${apiVariant}'")
def assetsJson = new JsonSlurper().parseText(assets)
def ts = assetsJson[0].timestamp // newest timestamp of a jdk asset
def assetTs = Instant.parse(ts).atZone(ZoneId.of("UTC"))
Expand Down