Skip to content

Commit

Permalink
Jenkinsfile: problem: jenkins Go install not working (#643)
Browse files Browse the repository at this point in the history
* Jenkinsfile: problem: jenkins Go install not working

+ 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]>

* Revert "Jenkinsfile: problem: jenkins Go install not working"

This reverts commit 858f16d.

* Jenkinsfile: use explicit go path and go command

workaround weird script problem which
cant find the right go

i dont know why it insistent on using
/usr/bin/go instead of /usr/local/go/bin/go,
which is also in the PATH

Date: 2024-06-08 10:57:39-06:00
Signed-off-by: meows <[email protected]>

* Jenkinsfile: make geth executable by everyone

Date: 2024-06-08 11:16:31-06:00
Signed-off-by: meows <[email protected]>

* Jenkinsfile: problem: newline expected

Date: 2024-06-08 11:20:51-06:00
Signed-off-by: meows <[email protected]>

* Jenkinsfile: problem: newline unexpected

wtf?

Date: 2024-06-08 11:31:14-06:00
Signed-off-by: meows <[email protected]>

* Jenkinsfile: problem: newline unexpected

Date: 2024-06-08 11:39:10-06:00
Signed-off-by: meows <[email protected]>

* Jenkinsfile: problem: newline unexpected

Date: 2024-06-08 11:43:37-06:00
Signed-off-by: meows <[email protected]>

* Jenkinsfile: syntax problem

Date: 2024-06-08 11:51:55-06:00
Signed-off-by: meows <[email protected]>

* Jenkinsfile: problem: unexpected newline

I wasnt building geth, oops.

Date: 2024-06-08 12:23:43-06:00
Signed-off-by: meows <[email protected]>

---------

Signed-off-by: meows <[email protected]>
  • Loading branch information
meowsbits committed Jun 9, 2024
1 parent a713756 commit 33842b8
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,14 @@ 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"
sh "make geth && ./build/bin/geth version"
sh "/usr/local/go/bin/go version"
sh "mkdir -p ./build/bin && /usr/local/go/bin/go build -o ./build/bin/geth ./cmd/geth && sudo chmod +x ./build/bin/geth"
sh "sudo cp ./build/bin/geth /usr/bin/ && which geth"
sh "geth version"
sh "rm -rf ${GETH_DATADIR}-mordor"
sh "shasum -a 256 -c ./tests/regression/shasums/mordor.0-1686858.rlp.gz.sha256"
sh "./build/bin/geth --mordor --fakepow --cache=2048 --nocompaction --nousb --txlookuplimit=1 --datadir=${GETH_DATADIR}-mordor import ${GETH_EXPORTS}/mordor.0-1686858.rlp.gz"
sh "geth --mordor --fakepow --cache=2048 --nocompaction --nousb --txlookuplimit=1 --datadir=${GETH_DATADIR}-mordor import ${GETH_EXPORTS}/mordor.0-1686858.rlp.gz"
sh "rm -rf ${GETH_DATADIR}"
}
post {
Expand All @@ -44,14 +44,14 @@ 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"
sh "make geth && ./build/bin/geth version"
sh "/usr/local/go/bin/go version"
sh "mkdir -p ./build/bin && /usr/local/go/bin/go build -o ./build/bin/geth ./cmd/geth && sudo chmod +x ./build/bin/geth"
sh "sudo cp ./build/bin/geth /usr/bin/ && which geth"
sh "geth version"
sh "rm -rf ${GETH_DATADIR}-goerli"
sh "shasum -a 256 -c ./tests/regression/shasums/goerli.0-2000000.rlp.gz.sha256"
sh "./build/bin/geth --goerli --cache=2048 --nocompaction --nousb --txlookuplimit=1 --datadir=${GETH_DATADIR}-goerli import ${GETH_EXPORTS}/goerli.0-2000000.rlp.gz"
sh "geth --goerli --cache=2048 --nocompaction --nousb --txlookuplimit=1 --datadir=${GETH_DATADIR}-goerli import ${GETH_EXPORTS}/goerli.0-2000000.rlp.gz"
}
post {
always { sh "rm -rf ${GETH_DATADIR}-goerli" }
Expand Down

0 comments on commit 33842b8

Please sign in to comment.