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 {
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 {
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>)"
}
}
}