Jenkins "go-webapp-sample" test phase failure

When I tried to run the Pipeline, the build is failing at the testing stage, below is the instruction at the testing stage

sh 'go test ./...'

the error output is below

+ go test ./...
/var/lib/jenkins/workspace/kk-go-webapp@tmp/durable-6f6b96d2/script.sh: 1: go: not found

Added info:
I’m trying to build an automated pipeline to deploy “go-webapp-sample” from github

git link: GitHub - kodekloudhub/go-webapp-sample: golang, echo, gorm

Did you install go?

You can install the plugin for Go and then when it is installed you can select a version to install from the Tools section in Manage Jenkins.

1 Like