add notifications to build step and static link
All checks were successful
dreamfall/pnut-bridge/pipeline/head This commit looks good

This commit is contained in:
Morgan McMillian 2022-11-27 17:40:41 -08:00
parent 5cf0632f93
commit 53b45ba214

8
Jenkinsfile vendored
View file

@ -7,15 +7,21 @@ pipeline {
} }
environment { environment {
XDG_CACHE_HOME = '/tmp/.cache' XDG_CACHE_HOME = '/tmp/.cache'
CGO_ENABLED = 0
} }
stages { stages {
stage('build') { stage('build') {
steps { steps {
mattermostSend "Build started - ${env.JOB_NAME} ${env.BUILD_NUMBER} (<${env.BUILD_URL}|Open>)"
sh 'go build' sh 'go build'
} }
post { post {
success { success {
archiveArtifacts artifacts: 'pnut-bridge', fingerprint: true 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>)"
} }
} }
} }