pnut-bridge/Jenkinsfile
Morgan McMillian 53b45ba214
All checks were successful
dreamfall/pnut-bridge/pipeline/head This commit looks good
add notifications to build step and static link
2022-11-27 17:40:41 -08:00

29 lines
854 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 "Build success - ${env.JOB_NAME} ${env.BUILD_NUMBER} (<${env.BUILD_URL}|Open>)"
archiveArtifacts artifacts: 'pnut-bridge'
}
failure {
mattermostSend "Build failure - ${env.JOB_NAME} ${env.BUILD_NUMBER} (<${env.BUILD_URL}|Open>)"
}
}
}
}
}