Skip to content

Commit

Permalink
chore(Jenkinsfile) increase DockerHub rate limit with authentication (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
dduportal committed Jul 24, 2024
1 parent 387ad60 commit 069d46e
Showing 1 changed file with 18 additions and 15 deletions.
33 changes: 18 additions & 15 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -64,21 +64,24 @@ node('docker&&linux') {
* something is very wrong
*/
timeout(60) {
sh '''#!/usr/bin/env bash
set -o errexit
set -o nounset
set -o pipefail
set -o xtrace
make all
illegal_filename="$( find . -name '*[<>]*' )"
if [[ -n "$illegal_filename" ]] ; then
echo "Failing build due to illegal filename:" >&2
echo "$illegal_filename" >&2
exit 1
fi
'''
// Need to authenticate on DockerHub with a read-only account to avoid rate limit
infra.withDockerCredentials {
sh '''#!/usr/bin/env bash
set -o errexit
set -o nounset
set -o pipefail
set -o xtrace
make all
illegal_filename="$( find . -name '*[<>]*' )"
if [[ -n "$illegal_filename" ]] ; then
echo "Failing build due to illegal filename:" >&2
echo "$illegal_filename" >&2
exit 1
fi
'''
}
}
}

Expand Down

0 comments on commit 069d46e

Please sign in to comment.