Re: Jenkinsfile pipeline for go builds... need an example.

2019-03-12 Thread ctr0306
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()]){ d

Re: Jenkinsfile pipeline for go builds... need an example.

2017-08-04 Thread Chris R
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-fi

Re: Jenkinsfile pipeline for go builds... need an example.

2017-02-17 Thread Tom Lester
Also... do we know if they are working to fix the durable problem? -- 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

Re: Jenkinsfile pipeline for go builds... need an example.

2017-02-17 Thread Tom Lester
Yeah... I've played with that by setting the GOPATH to a different location that I can write to, however... every time I use "dir() {}' It breaks with the durable garbage. I am trying to use "dir" to do a "checkout scm" into the GOPATH. It fails every time with the durable problem. On Friday,

Re: Jenkinsfile pipeline for go builds... need an example.

2017-02-17 Thread Eric Pyle
No, there isn't. There have been many people posting about coming to grief by trying to work with the exact path to the workspace in Pipeline. If your difficulty is that you can't write to /go on the root level, can you set up an alternate location for GO, one that does not depend on the worksp

Re: Jenkinsfile pipeline for go builds... need an example.

2017-02-17 Thread Tom Lester
It's adding this "@durable" stuff in there when I use "dir() {}". Is there anyway to keep it from doing that? -- 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

Jenkinsfile pipeline for go builds... need an example.

2017-02-17 Thread Tom Lester
Hi all - I'm not a go (golang) developer, but the team that I support write their services in go. I need to build a pipeline for go builds. However... because of the strict pathing that go expects (/go/src/Y/Y/X), I'm having a hard time making a pipeline that works. My problem is that I ne