From 1d40f1b5f7990d5d14e1ce4fc3e6e131a0b91094 Mon Sep 17 00:00:00 2001 From: Damien Duportal Date: Thu, 25 Jul 2024 07:36:26 +0200 Subject: [PATCH] chore(Jenkinsfile) increase DockerHub rate limit with authentication Ref. jenkins-infra/helpdesk#4192 (comment) --- Jenkinsfile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 1a20ec4422..7152cf335c 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -55,7 +55,10 @@ stage('Record builds and sessions') { } axes['jenkinsVersions'].each { jenkinsVersion -> infra.withArtifactCachingProxy { - sh "rm -rf target && DISPLAY=:0 ./run.sh firefox ${jenkinsVersion} -Dmaven.repo.local=${WORKSPACE_TMP}/m2repo -B clean process-test-resources" + // Need to authenticate on DockerHub with a read-only account to avoid rate limit + infra.withDockerCredentials { + sh "rm -rf target && DISPLAY=:0 ./run.sh firefox ${jenkinsVersion} -Dmaven.repo.local=${WORKSPACE_TMP}/m2repo -B clean process-test-resources" + } } def coreCommit = sh(script: './core-commit.sh', returnStdout: true).trim() /*