Build go-bindata before building the application

debian
Jan Dittberner 5 years ago
parent 0aa9ef7b5d
commit 317aa7a91a

8
Jenkinsfile vendored

@ -8,14 +8,16 @@ pipeline {
}
stages {
stage('Remove old build directory') {
stage('Install go-bindata') {
steps {
sh "rm -rf '${GOPATH}/src/git.cacert.org'"
sh "mkdir -p '${GOPATH}/bin'
sh "cd '${GOPATH}/bin'"
sh "go get -u -v github.com/shuLhan/go-bindata/cmd/go-bindata"
}
}
stage('Build') {
steps {
sh "make clean && make BUILD='${env.BUILD_TAG}'"
sh "make distclean && make BUILD='${env.BUILD_TAG}'"
}
}
stage('Create build output') {

Loading…
Cancel
Save