cacert-boardvoting/Jenkinsfile

30 lines
716 B
Text
Raw Normal View History

#!groovy
pipeline {
agent any
environment {
2017-08-27 19:25:47 +00:00
GOPATH = "${pwd(tmp: true)}/gocode"
2018-03-29 20:12:09 +00:00
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'
}
}
}
}