mirror of https://github.com/k3s-io/k3s
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 jenkinspull/6/head
commit
154ed74424
|
@ -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
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue