I am trying to create pipeline using blue ocean(jenkins), but i am getting this error:
I have performed all the steps (linking github, creating stage etc.) and while creating the pipeline I used shell script to test the command go test ./... as step.
Here is the link of the repo https://github.com/SajjanYadav/go-webapp-sample
I tried to find the solution and got to know that may be the path of go is not in the path variable, but even after adding the path (PATH=$PATH:/usr/local/go/bin) the error keeps on coming.

As @David commented, it depends on how you update your
PATHvariable. If you're trying to addgoonly in your Jenkinsfile, you might be better off usingenvironment { PATH = '/usr/local/go/bin:$PATH }or usewithEnv(PATH='$PATH:/usr/local/go/bin') { sh 'go test' }