mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-22 07:15:49 +00:00
jenkins file added
This commit is contained in:
parent
76b3b07c6e
commit
f0ce4b9dd8
1 changed files with 23 additions and 0 deletions
23
Jenkinsfile
vendored
Normal file
23
Jenkinsfile
vendored
Normal file
|
@ -0,0 +1,23 @@
|
|||
pipeline {
|
||||
agent {
|
||||
label 'dockerbuild'
|
||||
}
|
||||
stages {
|
||||
stage('Building our image') {
|
||||
steps {
|
||||
script {
|
||||
dockerImage = docker.build "mpatel011/spring-petclinic:$BUILD_NUMBER"
|
||||
}
|
||||
}
|
||||
}
|
||||
stage('Deploy our image') {
|
||||
steps {
|
||||
script {
|
||||
docker.withRegistry('' , 'dockerhub') {
|
||||
dockerImage.push()
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue