mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-29 18:55:49 +00:00
JenkinsFile docker configuration
This commit is contained in:
parent
86a18d9adb
commit
7355b5605a
2 changed files with 21 additions and 14 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -14,4 +14,4 @@ build/*
|
|||
.vscode
|
||||
_site/
|
||||
*.css
|
||||
!petclinic.css
|
||||
!petclinic.css
|
33
Jenkinsfile
vendored
33
Jenkinsfile
vendored
|
@ -5,20 +5,27 @@ pipeline {
|
|||
}
|
||||
}
|
||||
stages {
|
||||
stage('checkstyle') {
|
||||
// stage('checkstyle') {
|
||||
// steps {
|
||||
// sh './gradlew checkstyleMain'
|
||||
// archiveArtifacts artifacts: 'build/reports/checkstyle/main.html'
|
||||
// }
|
||||
// }
|
||||
// stage('test') {
|
||||
// steps {
|
||||
// sh './gradlew compileJava'
|
||||
// }
|
||||
// }
|
||||
// stage('build') {
|
||||
// steps {
|
||||
// sh './gradlew build -x test'
|
||||
// }
|
||||
// }
|
||||
stage('docker') {
|
||||
steps {
|
||||
sh './gradlew checkstyleMain'
|
||||
archiveArtifacts artifacts: 'build/reports/checkstyle/main.html'
|
||||
}
|
||||
}
|
||||
stage('test') {
|
||||
steps {
|
||||
sh './gradlew test'
|
||||
}
|
||||
}
|
||||
stage('build') {
|
||||
steps {
|
||||
sh './gradlew build -x test'
|
||||
// sh 'docker build -t my/app .'
|
||||
sh 'docker tag my/app rolandgryddynamics/mr'
|
||||
sh 'docker tag push rolandgryddynamics/mr'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue