mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2025-01-02 22:47:37 +01:00
Parallel gradle execution where possible
This commit is contained in:
parent
b8cc29e7ee
commit
59b33d5ff8
17
Jenkinsfile
vendored
17
Jenkinsfile
vendored
@ -2,14 +2,23 @@ pipeline {
|
|||||||
agent any
|
agent any
|
||||||
|
|
||||||
stages {
|
stages {
|
||||||
stage('Test') {
|
stage('Build') {
|
||||||
|
steps {
|
||||||
|
dir("Plan") {
|
||||||
|
script {
|
||||||
|
sh './gradlew shadowJar --parallel'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
stage('Tests') {
|
||||||
steps {
|
steps {
|
||||||
dir("Plan") {
|
dir("Plan") {
|
||||||
script {
|
script {
|
||||||
try {
|
try {
|
||||||
sh './gradlew clean test --no-daemon' //run a gradle task
|
sh './gradlew clean test --no-daemon'
|
||||||
} finally {
|
} 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 {
|
steps {
|
||||||
dir("Plan") {
|
dir("Plan") {
|
||||||
script {
|
script {
|
||||||
sh './gradlew checkstyleMain checkstyleTest'
|
sh './gradlew checkstyleMain checkstyleTest --parallel'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1 +1,2 @@
|
|||||||
./gradlew checkstyleMain checkstyleTest
|
cd Plan
|
||||||
|
./gradlew checkstyleMain checkstyleTest --parallel
|
||||||
|
Loading…
Reference in New Issue
Block a user