File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -32,6 +32,14 @@ readonly OS_ARCH="${OS}-${ARCH}"
3232readonly TEST_ROOT=" ${HOME} /minikube-integration"
3333readonly TEST_HOME=" ${TEST_ROOT} /${MINIKUBE_LOCATION} -$$ "
3434
35+ # Set up isolated gsutil state directory to avoid resumable upload/download conflicts
36+ mkdir -p " ${TEST_HOME} /.gsutil_state"
37+ cat << EOF > "${TEST_HOME} /.gsutil_boto"
38+ [GSUtil]
39+ state_dir = ${TEST_HOME} /.gsutil_state
40+ EOF
41+ export BOTO_PATH=" ${TEST_HOME} /.gsutil_boto:${HOME} /.boto"
42+
3543export GOPATH=" $HOME /go"
3644export KUBECONFIG=" ${TEST_HOME} /kubeconfig"
3745export PATH=$PATH :" /usr/local/bin/:/usr/local/go/bin/:$GOPATH /bin"
Original file line number Diff line number Diff line change @@ -25,6 +25,15 @@ set -eux -o pipefail
2525
2626readonly bucket=" minikube-builds"
2727
28+ # Set up isolated gsutil state directory to avoid resumable upload conflicts
29+ export WORKSPACE_TMP=" ${WORKSPACE_TMP:-/ tmp} "
30+ mkdir -p " ${WORKSPACE_TMP} /.gsutil_state"
31+ cat << EOF > "${WORKSPACE_TMP} /.gsutil_boto"
32+ [GSUtil]
33+ state_dir = ${WORKSPACE_TMP} /.gsutil_state
34+ EOF
35+ export BOTO_PATH=" ${WORKSPACE_TMP} /.gsutil_boto:${HOME} /.boto"
36+
2837# Make sure the right golang version is installed based on Makefile
2938./hack/jenkins/installers/check_install_golang.sh /usr/local
3039
@@ -52,10 +61,10 @@ make -j 16 \
5261&& failed=$? || failed=$?
5362
5463BUILT_VERSION=$( " out/minikube-$( go env GOOS) -$( go env GOARCH) " version)
55- echo ${BUILT_VERSION}
64+ echo " ${BUILT_VERSION} "
5665
57- COMMIT=$( echo ${BUILT_VERSION} | grep ' commit:' | awk ' {print $2}' )
58- if ( echo ${COMMIT} | grep -q dirty) ; then
66+ COMMIT=$( echo " ${BUILT_VERSION} " | grep ' commit:' | awk ' {print $2}' )
67+ if echo " ${COMMIT} " | grep -q dirty; then
5968 echo " 'minikube version' reports dirty commit: ${COMMIT} "
6069 exit 1
6170fi
Original file line number Diff line number Diff line change @@ -43,10 +43,10 @@ chmod +x "${MINIKUBE_BIN}" "${E2E_BIN}"
4343if [ " ${OS} " != " darwin" ]; then
4444
4545 BUILT_VERSION=$( " out/minikube-${OS_ARCH} " version)
46- echo ${BUILT_VERSION}
46+ echo " ${BUILT_VERSION} "
4747
48- COMMIT=$( echo ${BUILT_VERSION} | grep ' commit:' | awk ' {print $2}' )
49- if ( echo ${COMMIT} | grep -q dirty) ; then
48+ COMMIT=$( echo " ${BUILT_VERSION} " | grep ' commit:' | awk ' {print $2}' )
49+ if echo " ${COMMIT} " | grep -q dirty; then
5050 echo " 'minikube version' reports dirty commit: ${COMMIT} "
5151 exit 1
5252 fi
You can’t perform that action at this time.
0 commit comments