diff --git a/Jenkinsfile b/Jenkinsfile index e3e8fb3b9..7f4765320 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -7,6 +7,19 @@ pipeline { sh './gradlew build --no-daemon' archiveArtifacts artifacts: 'dist/trainSchedule.zip' } + } + stage('Build docker image') { + when { + branch 'master' + } + steps { + script { + app = docker.build("nithinmlr\trainSchedule") + app.inside { + sh 'echo $(curl localhost:8080) + } + + } } } -} \ No newline at end of file +}