mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-17 21:15:50 +00:00
Try to enable parallel
This commit is contained in:
parent
2ff6113dc2
commit
bb9b6e3e8e
1 changed files with 19 additions and 20 deletions
39
Jenkinsfile
vendored
39
Jenkinsfile
vendored
|
@ -1,6 +1,6 @@
|
||||||
pipeline {
|
pipeline {
|
||||||
|
|
||||||
agent any
|
agent none
|
||||||
|
|
||||||
stages {
|
stages {
|
||||||
|
|
||||||
|
@ -28,26 +28,25 @@ pipeline {
|
||||||
|
|
||||||
stage("tests") {
|
stage("tests") {
|
||||||
steps {
|
steps {
|
||||||
|
parallel (
|
||||||
parallel (
|
"static-analysis": {
|
||||||
"static-analysis" : {
|
node("build") {
|
||||||
node("build") {
|
unstash "sources"
|
||||||
unstash "sources"
|
withMaven(maven:"M3") {
|
||||||
withMaven(maven:"M3") {
|
withSonarQubeEnv('sonarqube') {
|
||||||
withSonarQubeEnv('sonarqube') {
|
sh 'mvn sonar:sonar'
|
||||||
sh 'mvn sonar:sonar'
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"performance-tests": {
|
||||||
|
node("test") {
|
||||||
|
echo "performance tests"
|
||||||
|
sh "ls -rtl"
|
||||||
|
sleep 20
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
)
|
||||||
},
|
|
||||||
"performance-tests": {
|
|
||||||
node("test") {
|
|
||||||
echo "performance tests"
|
|
||||||
sh "ls -rtl"
|
|
||||||
sleep 20
|
|
||||||
}
|
|
||||||
}
|
|
||||||
)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue