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 {
|
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>)"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue