Skip to content

Commit

Permalink
Use Docker Hub mirror registry to avoid hitting the pull limit (#516)
Browse files Browse the repository at this point in the history
* Use dockerhub mirror registry

* Restore the use of buildkit

* Remove docker info
  • Loading branch information
daniele-moro authored Apr 28, 2022
1 parent 157f011 commit a33fb69
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .jenkins/Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,12 @@ pipeline {
stage("Prepare environment") {
steps {
step([$class: "WsCleanup"])
sh """sudo bash -c 'cat << EOF > /etc/docker/daemon.json
{
\"registry-mirrors\":[\"https://mirror.registry.opennetworking.org\"]
}
EOF'"""
sh "sudo systemctl restart docker"
gitCheckout(GITHUB_URL, commitHash)
dockerLogins()
//Set JDK 11
Expand Down

0 comments on commit a33fb69

Please sign in to comment.