pnut-bridge/Jenkinsfile
Morgan McMillian 89776c6a5e
All checks were successful
dreamfall/pnut-bridge/pipeline/head This commit looks good
fix syntax error
2022-11-27 17:54:19 -08:00

29 lines
904 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>)"
}
}
}
}
}