Points:
- Checkout git repository to subdir
src/gocov
usingLocal subdirectory for repo
option of Jenkins Git Plugin. - Add Jenkins $WORKSPACE to $GOPATH
- Convert gocov output. absolute path to relative path.
mkdir -p $JENKINS_HOME/gopath
export GOROOT=$JENKINS_HOME/workspace/golang
export GOPATH=$JENKINS_HOME/gopath:$WORKSPACE