Skip to content

Commit

Permalink
move runSmokeTests on the condition of enableTests
Browse files Browse the repository at this point in the history
  • Loading branch information
sophia-guo committed Apr 1, 2021
1 parent 461ca3f commit 4dcfb41
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 9 deletions.
11 changes: 11 additions & 0 deletions .project
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>ci-jenkins-pipelines</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
</buildSpec>
<natures>
</natures>
</projectDescription>
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 4dcfb41

Please sign in to comment.