cacert-boardvoting/Jenkinsfile

30 lines
717 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 {
2019-07-31 10:47:34 +00:00
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'
}
}
}
}