Simplify Jenkinsfile

debian
Jan Dittberner 5 years ago
parent 93f5305d8e
commit 0aa9ef7b5d

15
Jenkinsfile vendored

@ -8,23 +8,14 @@ pipeline {
} }
stages { stages {
stage('Fetch go dependencies') { stage('Remove old build directory') {
environment {
BUILDDIR = "${GOPATH}/src/git.cacert.org/cacert-boardvoting"
}
steps { steps {
sh "rm -rf '${GOPATH}/src/git.cacert.org' ; mkdir -p '${GOPATH}/src/git.cacert.org'" sh "rm -rf '${GOPATH}/src/git.cacert.org'"
sh "ln -s '${pwd()}' '${BUILDDIR}'"
sh "cd '${BUILDDIR}' ; go get -u github.com/golang/dep/cmd/dep && dep ensure -v"
sh "go get -u github.com/shuLhan/go-bindata/go-bindata"
} }
} }
stage('Build') { stage('Build') {
environment {
BUILDDIR = "${GOPATH}/src/git.cacert.org/cacert-boardvoting"
}
steps { steps {
sh "cd '${BUILDDIR}' ; make clean && make BUILD='${env.BUILD_TAG}'" sh "make clean && make BUILD='${env.BUILD_TAG}'"
} }
} }
stage('Create build output') { stage('Create build output') {

Loading…
Cancel
Save