pnut-bridge/Jenkinsfile

29 lines
919 B
Groovy

pipeline {
agent {
docker {
image 'golang:latest'
label 'docker-build'
}
}
environment {
XDG_CACHE_HOME = '/tmp/.cache'
CGO_ENABLED = 0
}
stages {
stage('build') {
steps {
// mattermostSend "Build started - ${env.JOB_NAME} ${env.BUILD_NUMBER} (<${env.BUILD_URL}|Open>)"
sh 'go build'
}
post {
success {
// mattermostSend color: "good", message: "Build success - ${env.JOB_NAME} ${env.BUILD_NUMBER} (<${env.BUILD_URL}|Open>)"
archiveArtifacts artifacts: 'pnut-bridge'
}
// failure {
// mattermostSend color: "danger", message: "Build failure - ${env.JOB_NAME} ${env.BUILD_NUMBER} (<${env.BUILD_URL}|Open>)"
// }
}
}
}
}