Hi Chris, I need your help here. I tried as you said but it did not worked for me I want to clone my git repo into /opt/go/src/myproject directory where (/opt/go is my GOPATH)
I tried the below way and it did not worked for me i am using alpine image withEnv(['GOPATH=' + pwd()]){ dir ('/opt/go/src/myproject') { checkout scm } } On Friday, August 4, 2017 at 6:38:41 PM UTC+5:30, Chris R wrote: > > Might be late to this question, but for anyone else whose searches came > here - I managed to get it to work like this: > > > withEnv(['GOPATH=' + pwd()]){ > dir ('src/github.com/username') { > // insert git checkout here > sh 'go build -o $GOPATH/my-bin-file' > } > } > > > -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/2a51b4b9-8e42-4cf6-9ef8-a3842f81a4f0%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.