Update Jenkinsfile

This commit is contained in:
Oleksandr Butenko 2021-06-13 12:52:57 +03:00 committed by GitHub
parent 4bb827676d
commit 4b31d59b1f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

12
Jenkinsfile vendored
View file

@ -7,5 +7,17 @@ pipeline {
sh './mvnw package sh './mvnw package
} }
} }
stage('Build Docker Image') {
when {
branch 'main'
}
steps {
script {
app = docker.build("sprientera/pets")
app.inside {
sh 'echo $(curl localhost:80)'
}
}
}
} }
} }