Skip to content

Commit

Permalink
move runSmokeTests on the condition of enableTests
Browse files Browse the repository at this point in the history
Signed-off-by: Sophia Guo <[email protected]>
  • Loading branch information
sophia-guo committed Apr 1, 2021
1 parent 461ca3f commit 3f6191f
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions pipelines/build/common/openjdk_build_pipeline.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -1411,19 +1411,16 @@ class Build {
}

// Run Smoke Tests and AQA Tests
try {
runSmokeTests()
if (enableTests && buildConfig.TEST_LIST.size() > 0) {
try {
// Run tests if we have a test list, don't use timeouts as the jobs have their own
if (enableTests) {
try {
runSmokeTests()
if (buildConfig.TEST_LIST.size() > 0) {
def testStages = runAQATests()
context.parallel testStages
} catch (Exception e) {
context.println (e.message)
}
} catch (Exception e) {
context.println(e.message)
}
} catch (Exception e) {
context.println(e.message)
}

//buildInstaller if needed
Expand Down

0 comments on commit 3f6191f

Please sign in to comment.