summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Dittberner <jandd@cacert.org>2019-07-31 12:35:54 +0200
committerJan Dittberner <jandd@cacert.org>2019-07-31 12:35:54 +0200
commit0aa9ef7b5d678417dd501155b879cdf2d4483a40 (patch)
tree73eb51bd4f77d1857ad4f1e7a3f68758469a9de0
parent93f5305d8ea84c644ae885128170b267c29ec236 (diff)
downloadcacert-boardvoting-0aa9ef7b5d678417dd501155b879cdf2d4483a40.tar.gz
cacert-boardvoting-0aa9ef7b5d678417dd501155b879cdf2d4483a40.tar.xz
cacert-boardvoting-0aa9ef7b5d678417dd501155b879cdf2d4483a40.zip
Simplify Jenkinsfile
-rw-r--r--Jenkinsfile15
1 files changed, 3 insertions, 12 deletions
diff --git a/Jenkinsfile b/Jenkinsfile
index 56bfc82..39f5938 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -8,23 +8,14 @@ pipeline {
}
stages {
- stage('Fetch go dependencies') {
- environment {
- BUILDDIR = "${GOPATH}/src/git.cacert.org/cacert-boardvoting"
- }
+ stage('Remove old build directory') {
steps {
- sh "rm -rf '${GOPATH}/src/git.cacert.org' ; mkdir -p '${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"
+ sh "rm -rf '${GOPATH}/src/git.cacert.org'"
}
}
stage('Build') {
- environment {
- BUILDDIR = "${GOPATH}/src/git.cacert.org/cacert-boardvoting"
- }
steps {
- sh "cd '${BUILDDIR}' ; make clean && make BUILD='${env.BUILD_TAG}'"
+ sh "make clean && make BUILD='${env.BUILD_TAG}'"
}
}
stage('Create build output') {