From cae92122b1c82cb2109dcb52d459d5820744b453 Mon Sep 17 00:00:00 2001 From: chinguan Date: Fri, 23 Aug 2024 17:13:45 +0800 Subject: [PATCH] Update Jenkinsfile --- Jenkinsfile | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index e3e8fb3b9..2d26761a4 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -8,5 +8,18 @@ pipeline { archiveArtifacts artifacts: 'dist/trainSchedule.zip' } } + stage('Build Docker Image') { + when { + branch 'master' + } + steps { + script { + app = docker.build("chinguan/train-schedule") + app.inside { + sh 'echo $(curl localhost:8080)' + } + } + } + } } -} \ No newline at end of file +}