diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 000000000..6d8e73968 --- /dev/null +++ b/Jenkinsfile @@ -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() + } + } + } + } + } +}