Simplify Jenkinsfile
authorJan Dittberner <jandd@cacert.org>
Wed, 31 Jul 2019 10:35:54 +0000 (12:35 +0200)
committerJan Dittberner <jandd@cacert.org>
Wed, 31 Jul 2019 10:35:54 +0000 (12:35 +0200)
Jenkinsfile

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