Fix ORANSC golang jobs
[infra/cicd.git] / jjb / oransc / verify-jobs-go.sh
index d5f70fc90c28b8a0e86e5cd48ddf1489c7a8a2b0..1cc7ae4498786f8da2e21ac900a396a8bfea6019 100644 (file)
@@ -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