Parallel gradle execution where possible

This commit is contained in:
Rsl1122 2019-08-06 12:16:13 +03:00
parent b8cc29e7ee
commit 59b33d5ff8
2 changed files with 15 additions and 5 deletions

17
Jenkinsfile vendored
View File

@ -2,14 +2,23 @@ pipeline {
agent any
stages {
stage('Test') {
stage('Build') {
steps {
dir("Plan") {
script {
sh './gradlew shadowJar --parallel'
}
}
}
}
stage('Tests') {
steps {
dir("Plan") {
script {
try {
sh './gradlew clean test --no-daemon' //run a gradle task
sh './gradlew clean test --no-daemon'
} finally {
junit '**/build/test-results/test/*.xml' //make the junit test results available in any case (success & failure)
junit '**/build/test-results/test/*.xml'
}
}
}
@ -19,7 +28,7 @@ pipeline {
steps {
dir("Plan") {
script {
sh './gradlew checkstyleMain checkstyleTest'
sh './gradlew checkstyleMain checkstyleTest --parallel'
}
}
}

View File

@ -1 +1,2 @@
./gradlew checkstyleMain checkstyleTest
cd Plan
./gradlew checkstyleMain checkstyleTest --parallel