Commit 154ed744 authored by k8s-merge-robot's avatar k8s-merge-robot

Merge pull request #23469 from fejta/goget

Automatic merge from submit-queue Retry github and godep operations in test-dockerized.sh closes #21887. Attempt to mitigate go get and godep flakes by retrying a few times inside of jenkins
parents d807690c 0c072237
......@@ -19,6 +19,13 @@ set -o nounset
set -o pipefail
set -o xtrace
retry() {
for i in {1..5}; do
"$@" && return 0 || sleep $i
done
"$@"
}
# Runs the unit and integration tests, producing JUnit-style XML test
# reports in ${WORKSPACE}/artifacts. This script is intended to be run from
# kubekins-test container with a kubernetes repo mapped in. See
......@@ -26,8 +33,8 @@ set -o xtrace
export PATH=${GOPATH}/bin:${PWD}/third_party/etcd:/usr/local/go/bin:${PATH}
go get github.com/tools/godep && godep version
go get github.com/jstemmer/go-junit-report
retry go get github.com/tools/godep && godep version
retry go get github.com/jstemmer/go-junit-report
# Enable the Go race detector.
export KUBE_RACE=-race
......@@ -53,5 +60,3 @@ godep go install ./...
./hack/test-cmd.sh
./hack/test-integration.sh
./hack/test-update-storage-objects.sh
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment