Skip to content

Commit

Permalink
A better test to see if testing was enabled in a given pipeline
Browse files Browse the repository at this point in the history
Signed-off-by: Adam Farley <[email protected]>
  • Loading branch information
adamfarley committed Oct 9, 2024
1 parent 618126f commit 1afcd40
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/nightly_build_and_test_stats.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -805,7 +805,7 @@ node('worker') {
}

def testsShouldHaveRun = false
if ( probableBuildUrl != "" && sh(returnStdout: true, script: "wget -q -O - ${trssUrl}/api/getBuildHistory?buildUrl=${probableBuildUrl}").count("\\\"enableTests\\\",\\\"value\\\": true") == 1 ) {
if ( probableBuildUrl != "" && sh(returnStdout: true, script: "wget -q -O - ${trssUrl}/api/getBuildHistory?buildUrl=${probableBuildUrl}") ==~ /.name.:.enableTests.,.value.:true/ ) {
testsShouldHaveRun = true
}
if (reproducibleBuilds.containsKey(featureRelease)) {
Expand Down

0 comments on commit 1afcd40

Please sign in to comment.