Build go-bindata before building the application
authorJan Dittberner <jandd@cacert.org>
Wed, 31 Jul 2019 10:46:33 +0000 (12:46 +0200)
committerJan Dittberner <jandd@cacert.org>
Wed, 31 Jul 2019 10:46:33 +0000 (12:46 +0200)
Jenkinsfile

index 39f5938..28acd5f 100644 (file)
@@ -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') {