summaryrefslogtreecommitdiff
path: root/Jenkinsfile
diff options
context:
space:
mode:
authorJan Dittberner <jandd@cacert.org>2019-07-31 12:46:33 +0200
committerJan Dittberner <jandd@cacert.org>2019-07-31 12:46:33 +0200
commit317aa7a91a739927b0848e94e25916eff266fd69 (patch)
tree8b2eca40e6580cb28941bcebd8d6c34f248b64ea /Jenkinsfile
parent0aa9ef7b5d678417dd501155b879cdf2d4483a40 (diff)
downloadcacert-boardvoting-317aa7a91a739927b0848e94e25916eff266fd69.tar.gz
cacert-boardvoting-317aa7a91a739927b0848e94e25916eff266fd69.tar.xz
cacert-boardvoting-317aa7a91a739927b0848e94e25916eff266fd69.zip
Build go-bindata before building the application
Diffstat (limited to 'Jenkinsfile')
-rw-r--r--Jenkinsfile8
1 files 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') {