You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
797 B
Plaintext
30 lines
797 B
Plaintext
7 years ago
|
#!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/**'
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|