diff --git a/Jenkinsfile b/Jenkinsfile index 660868e..3ddb40d 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -37,7 +37,7 @@ pipeline { NGINX_IMAGE = 'docker.m.daocloud.io/library/nginx:1.27-alpine' HTTP_PROXY_URL = 'http://192.168.5.200:7890' - NO_PROXY_HOSTS = '127.0.0.1,localhost,reg.nxsir.cn,gitea.nxsir.cn,openlist.nxsir.cn,mirrors.tuna.tsinghua.edu.cn,.tsinghua.edu.cn,mcr.microsoft.com,docker.m.daocloud.io' + NO_PROXY_HOSTS = '127.0.0.1,localhost,reg.nxsir.cn,gitea.nxsir.cn,openlist.nxsir.cn,mirrors.tuna.tsinghua.edu.cn,.tsinghua.edu.cn,mcr.microsoft.com' CI_ROOT = "${WORKSPACE}/.ci" DOCKER_CONFIG = "${WORKSPACE}/.ci/docker" @@ -199,6 +199,9 @@ pipeline { --driver docker-container \ --driver-opt "image=$BUILDKIT_IMAGE" \ --driver-opt network=host \ + --driver-opt "env.http_proxy=$HTTP_PROXY_URL" \ + --driver-opt "env.https_proxy=$HTTP_PROXY_URL" \ + --driver-opt "env.no_proxy=$NO_PROXY_HOSTS" \ --use ./scripts/ci-docker.sh buildx inspect "$BUILDER_NAME" --bootstrap '''