From f67a8b05bb4bbdb63fc7feb53f96e2ed3645aa99 Mon Sep 17 00:00:00 2001 From: nithinmlr <121264078+nithinmlr@users.noreply.github.com> Date: Wed, 20 Nov 2024 15:27:01 +0100 Subject: [PATCH] Update Jenkinsfile --- Jenkinsfile | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) 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 +}