mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-04-24 19:32:49 +00:00
Modify Jenkins file to build image every time
This commit is contained in:
parent
15b228d198
commit
f23aa04562
1 changed files with 2 additions and 5 deletions
7
Jenkinsfile
vendored
7
Jenkinsfile
vendored
|
@ -40,7 +40,7 @@ pipeline {
|
||||||
script {
|
script {
|
||||||
// Checkstyle with Gradle
|
// Checkstyle with Gradle
|
||||||
sh './gradlew checkstyleMain'
|
sh './gradlew checkstyleMain'
|
||||||
archiveArtifacts artifacts: 'build/reports/checkstyle/checkstyle.xml'
|
archiveArtifacts artifacts: 'build/reports/checkstyle/*.xml', allowEmptyArchive: true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -51,7 +51,7 @@ pipeline {
|
||||||
}
|
}
|
||||||
steps {
|
steps {
|
||||||
// Test using Gradle
|
// Test using Gradle
|
||||||
sh './gradlew test'
|
sh './gradlew clean test'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -68,9 +68,6 @@ pipeline {
|
||||||
}
|
}
|
||||||
|
|
||||||
stage('Build Docker Image') {
|
stage('Build Docker Image') {
|
||||||
when {
|
|
||||||
changeRequest()
|
|
||||||
}
|
|
||||||
steps {
|
steps {
|
||||||
script {
|
script {
|
||||||
// Build the Docker image
|
// Build the Docker image
|
||||||
|
|
Loading…
Reference in a new issue