Skip to content

Instantly share code, notes, and snippets.

@ntakouris
Last active August 24, 2017 09:33
Show Gist options
  • Save ntakouris/266f927b2237834eaacbc59af6393311 to your computer and use it in GitHub Desktop.
Save ntakouris/266f927b2237834eaacbc59af6393311 to your computer and use it in GitHub Desktop.
stage('Build'){
echo 'Building Executable'
//Produced binary is $GOPATH/src/cmd/project/project
sh """cd $GOPATH/src/cmd/project/ && go build -ldflags '-s'"""
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment