mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-21 15:25:49 +00:00
Update Jenkinsfile
This commit is contained in:
parent
26d5411092
commit
266ef56ae5
1 changed files with 9 additions and 3 deletions
12
Jenkinsfile
vendored
12
Jenkinsfile
vendored
|
@ -8,7 +8,9 @@ pipeline {
|
|||
}
|
||||
steps {
|
||||
// Use Maven checkstyle plugin to generate a code style report
|
||||
sh 'mvn checkstyle:checkstyle'
|
||||
script {
|
||||
sh 'M3/bin/mvn checkstyle:checkstyle'
|
||||
}
|
||||
archiveArtifacts artifacts: '**/target/checkstyle-result.xml', fingerprint: true
|
||||
}
|
||||
}
|
||||
|
@ -18,7 +20,9 @@ pipeline {
|
|||
}
|
||||
steps {
|
||||
// Run tests with Maven
|
||||
sh 'mvn test'
|
||||
script {
|
||||
sh 'M3/bin/mvn test'
|
||||
}
|
||||
}
|
||||
}
|
||||
stage('Build') {
|
||||
|
@ -27,7 +31,9 @@ pipeline {
|
|||
}
|
||||
steps {
|
||||
// Build without tests with Maven
|
||||
sh 'mvn clean package -DskipTests'
|
||||
script {
|
||||
sh 'M3/bin/mvn clean package -DskipTests'
|
||||
}
|
||||
}
|
||||
}
|
||||
stage('Create Docker Image MR') {
|
||||
|
|
Loading…
Reference in a new issue