Reduce shell calls to single steps
This commit is contained in:
parent
9398d90a38
commit
ebb15fc538
1 changed files with 4 additions and 6 deletions
10
Jenkinsfile
vendored
10
Jenkinsfile
vendored
|
@ -11,17 +11,15 @@ pipeline {
|
||||||
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' ; mkdir -p '${GOPATH}/src/git.cacert.org'"
|
||||||
sh "ln -s '${pwd()}' '${GOPATH}/src/git.cacert.org/cacert-boardvoting'"
|
sh "ln -s '${pwd()}' '${GOPATH}/src/git.cacert.org/cacert-boardvoting'"
|
||||||
dir(path: "${GOPATH}/src/git.cacert.org/cacert-boardvoting") {
|
dir("${GOPATH}/src/git.cacert.org/cacert-boardvoting") {
|
||||||
sh "go get -u github.com/golang/dep/cmd/dep"
|
sh "go get -u github.com/golang/dep/cmd/dep && '${GOPATH}/bin/dep' ensure -v"
|
||||||
sh "${GOPATH}/bin/dep ensure -v"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
stage('Build') {
|
stage('Build') {
|
||||||
steps {
|
steps {
|
||||||
dir(path: "${GOPATH}/src/git.cacert.org/cacert-boardvoting") {
|
dir("${GOPATH}/src/git.cacert.org/cacert-boardvoting") {
|
||||||
sh 'make clean'
|
sh 'make clean && make'
|
||||||
sh 'make'
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue