27 lines
615 B
Groovy
27 lines
615 B
Groovy
#!groovy
|
|
pipeline {
|
|
agent any
|
|
|
|
environment {
|
|
GOPATH = "${pwd(tmp: true)}/gocode"
|
|
PATH = "${GOPATH}/bin:${PATH}"
|
|
}
|
|
|
|
stages {
|
|
stage('Remove old build directory') {
|
|
steps {
|
|
sh "rm -rf '${GOPATH}/src/git.cacert.org'"
|
|
}
|
|
}
|
|
stage('Build') {
|
|
steps {
|
|
sh "make clean && make BUILD='${env.BUILD_TAG}'"
|
|
}
|
|
}
|
|
stage('Create build output') {
|
|
steps {
|
|
archiveArtifacts artifacts: 'cacert-boardvoting,config.yaml.example'
|
|
}
|
|
}
|
|
}
|
|
}
|