pipeline { agent any stages { stage('create nginx-with-tools-docker') { steps { script{ 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); } } } } } }