diff --git a/deploy-this/create-nginx-with-tools.jenkinsfile b/deploy-this/create-nginx-with-tools.jenkinsfile index 5905fe3..2456f92 100644 --- a/deploy-this/create-nginx-with-tools.jenkinsfile +++ b/deploy-this/create-nginx-with-tools.jenkinsfile @@ -5,8 +5,10 @@ pipeline { stage('create nginx-with-tools-docker') { steps { script{ - def nxinx_build ="docker build --build-arg NGINX_IMAGE=${NGINX_IMAGE} --file ./nginx-with-tools-docker.dockerfile -t nginx-with-tools ." - sh(nxinx_build); + dir("deploy-this"){ + def nxinx_build ="docker build --build-arg NGINX_IMAGE=${NGINX_IMAGE} --file ./nginx-with-tools-docker.dockerfile -t nginx-with-tools ." + sh(nxinx_build); + } } } }