Use dep in Jenkinsfile
authorJan Dittberner <jan@dittberner.info>
Sun, 27 Aug 2017 13:56:23 +0000 (15:56 +0200)
committerJan Dittberner <jan@dittberner.info>
Sun, 27 Aug 2017 13:56:23 +0000 (15:56 +0200)
Jenkinsfile

index e3bc736..697015a 100644 (file)
@@ -11,7 +11,8 @@ pipeline {
             steps {
                 sh "rm -rf '${GOPATH}/src/git.cacert.org' ; mkdir -p '${GOPATH}/src/git.cacert.org'"
                 sh "ln -s '${pwd()}' '${GOPATH}/src/git.cacert.org/cacert-boardvoting'"
-                sh "cd '${GOPATH}/src/git.cacert.org/cacert-boardvoting' ; go get"
+                sh "go get -u github.com/golang/dep/cmd/dep"
+                sh "cd '${GOPATH}/src/git.cacert.org/cacert-boardvoting' ; dep ensure -v"
             }
         }
         stage('Build') {