As per this link we can pass image name & dockerfile location to build an image in following way
docker.build("my-image:${env.BUILD_ID}", "-f ${dockerfile} ./dockerfiles")
I want to pass proxy settings to build command, Is there any way to pass it, similar to how we can pass in simple docker command.
docker build -t my-image --build-arg HTTP_PROXY=http://192.168.0.1:3128 ./dockerfiles