summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Dittberner <jan@dittberner.info>2017-08-27 21:37:26 +0200
committerJan Dittberner <jan@dittberner.info>2017-08-27 21:37:26 +0200
commitebb15fc53888035580af51e0fb3ce46dbc6205db (patch)
tree544aa747cd72caecda6312c6ef7041066e71e65b
parent9398d90a3874021897b758bb03023a635a29ffc9 (diff)
downloadcacert-boardvoting-ebb15fc53888035580af51e0fb3ce46dbc6205db.tar.gz
cacert-boardvoting-ebb15fc53888035580af51e0fb3ce46dbc6205db.tar.xz
cacert-boardvoting-ebb15fc53888035580af51e0fb3ce46dbc6205db.zip
Reduce shell calls to single steps
-rw-r--r--Jenkinsfile10
1 files changed, 4 insertions, 6 deletions
diff --git a/Jenkinsfile b/Jenkinsfile
index acc6234..a99c722 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -11,17 +11,15 @@ 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'"
- dir(path: "${GOPATH}/src/git.cacert.org/cacert-boardvoting") {
- sh "go get -u github.com/golang/dep/cmd/dep"
- sh "${GOPATH}/bin/dep ensure -v"
+ dir("${GOPATH}/src/git.cacert.org/cacert-boardvoting") {
+ sh "go get -u github.com/golang/dep/cmd/dep && '${GOPATH}/bin/dep' ensure -v"
}
}
}
stage('Build') {
steps {
- dir(path: "${GOPATH}/src/git.cacert.org/cacert-boardvoting") {
- sh 'make clean'
- sh 'make'
+ dir("${GOPATH}/src/git.cacert.org/cacert-boardvoting") {
+ sh 'make clean && make'
}
}
}