JenkinsFile docker configuration

This commit is contained in:
RolandBakunts 2023-01-17 02:08:38 -08:00
parent 86a18d9adb
commit 7355b5605a
2 changed files with 21 additions and 14 deletions

2
.gitignore vendored
View file

@ -14,4 +14,4 @@ build/*
.vscode
_site/
*.css
!petclinic.css
!petclinic.css

33
Jenkinsfile vendored
View file

@ -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'
}
}
}