From: nauman Date: Wed, 30 Mar 2022 12:45:57 +0000 (+0000) Subject: Fix ORANSC golang jobs X-Git-Url: https://gerrit.nordix.org/gitweb?a=commitdiff_plain;h=016f4c0086df26b1f68361b2dae215eff10d5a1d;p=infra%2Fcicd.git Fix ORANSC golang jobs extraction go tar.gz requires sudo Change-Id: If5862ae8572b45c74ed29748d1d6b3bfeb203798 --- diff --git a/jjb/oransc/verify-jobs-go.sh b/jjb/oransc/verify-jobs-go.sh index d5f70fc90..1cc7ae449 100644 --- a/jjb/oransc/verify-jobs-go.sh +++ b/jjb/oransc/verify-jobs-go.sh @@ -8,10 +8,10 @@ cd $WORKSPACE version=$(grep '^go' go.mod | grep -Eo '[0-9]\.[0-9]+') echo "Download go $version" -curl -L "https://go.dev/dl/go$version.linux-amd64.tar.gz" | tar -C /usr/local -zxf - +curl -L "https://go.dev/dl/go$version.linux-amd64.tar.gz" | sudo tar -C /usr/local -zxf - export PATH=$PATH:/usr/local/go/bin -export CGO_ENABLED=0 +export CGO_ENABLED=0 echo "Download project deps" go mod tidy