Skip to content

Commit

Permalink
[CI] Clone Kubernetes using git instead of go get (#2076)
Browse files Browse the repository at this point in the history
In hw-offload CI `go get` started to fail on recent Kubernetes version
because of a bug in go mods. This patch uses git to directly clone the
Kubernetes project source.
  • Loading branch information
abdallahyas committed Apr 12, 2021
1 parent 599d663 commit 51ab7ea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ci/jenkins/mellanox/common/common_functions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,9 @@ k8s_build(){
fi
rm -rf $GOPATH/src/k8s.io/kubernetes

go get -d k8s.io/kubernetes
git clone https://github.com/kubernetes/kubernetes.git $WORKSPACE/src/k8s.io/kubernetes

pushd $GOPATH/src/k8s.io/kubernetes
pushd $WORKSPACE/src/k8s.io/kubernetes
git checkout ${KUBERNETES_VERSION}
git log -p -1 > $ARTIFACTS/kubernetes.txt

Expand Down

0 comments on commit 51ab7ea

Please sign in to comment.