diff --git a/test/e2e/Jenkinsfile b/test/e2e/Jenkinsfile index 7611e1b0a..c4a5a64f9 100644 --- a/test/e2e/Jenkinsfile +++ b/test/e2e/Jenkinsfile @@ -22,10 +22,11 @@ class HarborChartFreshInstallPipelineExecutor extends FreshInstallPipelineExecut script.file(credentialsId: "kubeconfig", variable: "KUBE_CONFIG_FILE_PATH"), script.usernamePassword(credentialsId: "79e9fd98-cdf5-4f55-81fa-ecba01365534", usernameVariable: "DOCKER_HUB_USERNAME", passwordVariable: "DOCKER_HUB_PASSWORD")]) { script.sh """ + #!/bin/bash # Set proxy registry or docker credential to bypass Docker Hub rate limit + echo "PROXY_REGISTRY is \${PROXY_REGISTRY}" if [[ "\${PROXY_REGISTRY}" != "" ]]; then # set deafult registry to a proxy registry - echo "PROXY_REGISTRY is \${PROXY_REGISTRY}" echo '{ "registry-mirrors": ["'"\${PROXY_REGISTRY}"'"] }' | sudo tee /etc/docker/daemon.json > /dev/null