diff --git a/Jenkinsfile b/Jenkinsfile index 73cd58e92..7d42a5490 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -6,6 +6,18 @@ pipeline { echo 'Running build automation' sh './mvnw package } - } - } -} + } + stage('Build Docker Image') { + when { + branch 'main' + } + steps { + script { + app = docker.build("sprientera/pets") + app.inside { + sh 'echo $(curl localhost:80)' + } + } + } + } + }