cacert-boardvoting/Jenkinsfile
2019-07-31 12:47:34 +02:00

29 lines
717 B
Groovy

#!groovy
pipeline {
agent any
environment {
GOPATH = "${pwd(tmp: true)}/gocode"
PATH = "${GOPATH}/bin:${PATH}"
}
stages {
stage('Install go-bindata') {
steps {
sh "mkdir -p '${GOPATH}/bin'"
sh "cd '${GOPATH}/bin'"
sh "go get -u -v github.com/shuLhan/go-bindata/cmd/go-bindata"
}
}
stage('Build') {
steps {
sh "make distclean && make BUILD='${env.BUILD_TAG}'"
}
}
stage('Create build output') {
steps {
archiveArtifacts artifacts: 'cacert-boardvoting,config.yaml.example'
}
}
}
}