Skip to content

Commit

Permalink
Jenkinsfile: problem: jenkins Go install not working
Browse files Browse the repository at this point in the history
+ go version

go: cannot find GOROOT directory: 'go' binary is trimmed and GOROOT is not set

Date: 2024-06-08 10:42:51-06:00
Signed-off-by: meows <[email protected]>
  • Loading branch information
meowsbits committed Jun 8, 2024
1 parent a713756 commit 858f16d
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ pipeline {
steps {
sh "curl -L -O https://go.dev/dl/go1.22.4.linux-amd64.tar.gz"
sh "sudo rm -rf /usr/bin/go && sudo rm -rf /usr/local/go && sudo tar -C /usr/local -xzf go1.22.4.linux-amd64.tar.gz"
sh "sudo cp /usr/local/go/bin/go /usr/bin/go"
sh "sudo cp /usr/local/go/bin/gofmt /usr/bin/gofmt"
sh "export GOROOT=/usr/local/go"
sh "go version"
Expand All @@ -44,7 +43,6 @@ pipeline {
steps {
sh "curl -L -O https://go.dev/dl/go1.22.4.linux-amd64.tar.gz"
sh "sudo rm -rf /usr/bin/go && sudo rm -rf /usr/local/go && sudo tar -C /usr/local -xzf go1.22.4.linux-amd64.tar.gz"
sh "sudo cp /usr/local/go/bin/go /usr/bin/go"
sh "sudo cp /usr/local/go/bin/gofmt /usr/bin/gofmt"
sh "export GOROOT=/usr/local/go"
sh "go version"
Expand Down

0 comments on commit 858f16d

Please sign in to comment.