diff --git a/Jenkinsfile b/Jenkinsfile index dcb5125..9ea5d1d 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -18,6 +18,7 @@ pipeline { HTTP_PROXY = 'http://192.168.5.200:7890' HTTPS_PROXY = 'http://192.168.5.200:7890' NO_PROXY = '127.0.0.1,localhost,reg.nxsir.cn,gitea.nxsir.cn,192.168.0.0/16,10.0.0.0/8,172.16.0.0/12' + NO_PROXY_DRIVER = '127.0.0.1\\,localhost\\,reg.nxsir.cn\\,gitea.nxsir.cn\\,192.168.0.0/16\\,10.0.0.0/8\\,172.16.0.0/12' GIT_REPO_URL = 'https://gitea.nxsir.cn/nanxun/live_recorder.git' GIT_BRANCH = 'main' @@ -85,7 +86,7 @@ pipeline { --driver docker-container \ --driver-opt env.http_proxy=${HTTP_PROXY} \ --driver-opt env.https_proxy=${HTTPS_PROXY} \ - --driver-opt env.no_proxy=${NO_PROXY} \ + --driver-opt env.no_proxy=${NO_PROXY_DRIVER} \ --use fi sudo docker buildx inspect --builder ${BUILDER_NAME} --bootstrap >/dev/null @@ -121,7 +122,7 @@ pipeline { --driver docker-container \ --driver-opt env.http_proxy=${HTTP_PROXY} \ --driver-opt env.https_proxy=${HTTPS_PROXY} \ - --driver-opt env.no_proxy=${NO_PROXY} \ + --driver-opt env.no_proxy=${NO_PROXY_DRIVER} \ --use fi sudo docker buildx inspect --builder ${BUILDER_NAME} --bootstrap >/dev/null