summaryrefslogtreecommitdiff
path: root/Jenkinsfile
diff options
context:
space:
mode:
authorJan Dittberner <jandd@cacert.org>2017-05-14 15:22:45 +0200
committerJan Dittberner <jandd@cacert.org>2017-05-14 19:49:12 +0200
commitaff6bf1fffff2b9469c51a9279894cc5890116d4 (patch)
tree22f68e7850a26ba17c1b0754ba32f46ecf5c1755 /Jenkinsfile
parent14ed5a502038ae8a6833c412c94b4fbfe06648a3 (diff)
downloadcacert-boardvoting-aff6bf1fffff2b9469c51a9279894cc5890116d4.tar.gz
cacert-boardvoting-aff6bf1fffff2b9469c51a9279894cc5890116d4.tar.xz
cacert-boardvoting-aff6bf1fffff2b9469c51a9279894cc5890116d4.zip
Add Jenkinsfile to enable Jenkins build
Diffstat (limited to 'Jenkinsfile')
-rw-r--r--Jenkinsfile29
1 files changed, 29 insertions, 0 deletions
diff --git a/Jenkinsfile b/Jenkinsfile
new file mode 100644
index 0000000..e3bc736
--- /dev/null
+++ b/Jenkinsfile
@@ -0,0 +1,29 @@
+#!groovy
+pipeline {
+ agent any
+
+ environment {
+ GOPATH = "${pwd()}/gocode"
+ }
+
+ stages {
+ stage('Fetch go dependencies') {
+ 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"
+ }
+ }
+ stage('Build') {
+ steps {
+ sh 'make clean'
+ sh 'make'
+ }
+ }
+ stage('Create build output') {
+ steps {
+ archiveArtifacts artifacts: 'cacert-boardvoting,templates/**,db/**,config.yaml.example,static/**'
+ }
+ }
+ }
+}