add notifications to build step and static link
All checks were successful
dreamfall/pnut-bridge/pipeline/head This commit looks good
All checks were successful
dreamfall/pnut-bridge/pipeline/head This commit looks good
This commit is contained in:
parent
5cf0632f93
commit
53b45ba214
1 changed files with 7 additions and 1 deletions
8
Jenkinsfile
vendored
8
Jenkinsfile
vendored
|
@ -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>)"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue