From 317aa7a91a739927b0848e94e25916eff266fd69 Mon Sep 17 00:00:00 2001 From: Jan Dittberner Date: Wed, 31 Jul 2019 12:46:33 +0200 Subject: [PATCH] Build go-bindata before building the application --- Jenkinsfile | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 39f5938..28acd5f 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -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') {