From 6e1e7c0c278ec51b95dd742f1411d9c6726adf47 Mon Sep 17 00:00:00 2001 From: 30hours Date: Thu, 15 Feb 2024 13:17:51 +0000 Subject: [PATCH] Jenkins add script block --- Jenkinsfile | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 81fe9f1..039c293 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -9,9 +9,11 @@ pipeline { } stage('Build') { steps { - echo 'Building the project' - docker.build("30hours/blah2", "--file ./Dockerfile .") - docker.build("30hours/blah2", "--file ./api/Dockerfile .") + script { + echo 'Building the project' + blah2 = docker.build("30hours/blah2", "--file ./Dockerfile .") + blah2_api = docker.build("30hours/blah2", "--file ./api/Dockerfile .") + } } } stage('Test') {