mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-22 07:45: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 {
|
steps {
|
||||||
// Use Maven checkstyle plugin to generate a code style report
|
// 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
|
archiveArtifacts artifacts: '**/target/checkstyle-result.xml', fingerprint: true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -18,7 +20,9 @@ pipeline {
|
||||||
}
|
}
|
||||||
steps {
|
steps {
|
||||||
// Run tests with Maven
|
// Run tests with Maven
|
||||||
sh 'mvn test'
|
script {
|
||||||
|
sh 'M3/bin/mvn test'
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
stage('Build') {
|
stage('Build') {
|
||||||
|
@ -27,7 +31,9 @@ pipeline {
|
||||||
}
|
}
|
||||||
steps {
|
steps {
|
||||||
// Build without tests with Maven
|
// Build without tests with Maven
|
||||||
sh 'mvn clean package -DskipTests'
|
script {
|
||||||
|
sh 'M3/bin/mvn clean package -DskipTests'
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
stage('Create Docker Image MR') {
|
stage('Create Docker Image MR') {
|
||||||
|
|
Loading…
Reference in a new issue