From 1f045fcfebea0f90c9f80baf2498624c83daaa89 Mon Sep 17 00:00:00 2001 From: Nial <48334675+nmcc1212@users.noreply.github.com> Date: Fri, 17 May 2024 14:00:59 +0100 Subject: [PATCH] move dir into steps --- newAPI/Jenkinsfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/newAPI/Jenkinsfile b/newAPI/Jenkinsfile index ce6fc2b..c704620 100644 --- a/newAPI/Jenkinsfile +++ b/newAPI/Jenkinsfile @@ -14,8 +14,8 @@ pipeline { } stage('Build Docker Image') { - dir('newAPI') { - steps { + steps { + dir ('newAPI') { script { dockerImage = docker.build("${DOCKERHUB_REPO}") }