Add mattermost status messages
Some checks reported errors
dreamfall/partybot/pipeline/head Something is wrong with the build of this commit
Some checks reported errors
dreamfall/partybot/pipeline/head Something is wrong with the build of this commit
This commit is contained in:
parent
c5f58d2d10
commit
81b65fd8d9
1 changed files with 10 additions and 0 deletions
10
Jenkinsfile
vendored
10
Jenkinsfile
vendored
|
@ -9,25 +9,35 @@ pipeline {
|
|||
stage('Build snap for ARM64') {
|
||||
agent { label "snap-arm64" }
|
||||
steps {
|
||||
mattermostSend "ARM64 Snap build started - ${env.JOB_NAME} ${env.BUILD_NUMBER} (<${env.BUILD_URL}|Open>)"
|
||||
sh "rm *.snap || true"
|
||||
sh "snapcraft"
|
||||
}
|
||||
post {
|
||||
success {
|
||||
mattermostSend color: "good", message: "ARM64 Snap build success - ${env.JOB_NAME} ${env.BUILD_NUMBER} (<${env.BUILD_URL}|Open>)"
|
||||
sh "snapcraft upload --release=edge *.snap"
|
||||
}
|
||||
failure {
|
||||
mattermostSend color: "danger", message: "ARM64 Snap build failure - ${env.JOB_NAME} ${env.BUILD_NUMBER} (<${env.BUILD_URL}|Open>)"
|
||||
}
|
||||
}
|
||||
}
|
||||
stage('Build snap for AMD64') {
|
||||
agent { label "snap-amd64" }
|
||||
steps {
|
||||
mattermostSend "AMD64 Snap build Started - ${env.JOB_NAME} ${env.BUILD_NUMBER} (<${env.BUILD_URL}|Open>)"
|
||||
sh "rm *.snap || true"
|
||||
sh "snapcraft"
|
||||
}
|
||||
post {
|
||||
success {
|
||||
mattermostSend color: "good", message: "AMD64 Snap build success - ${env.JOB_NAME} ${env.BUILD_NUMBER} (<${env.BUILD_URL}|Open>)"
|
||||
sh "snapcraft upload --release=edge *.snap"
|
||||
}
|
||||
failure {
|
||||
mattermostSend color: "danger", message: "AMD64 Snap build failure - ${env.JOB_NAME} ${env.BUILD_NUMBER} (<${env.BUILD_URL}|Open>)"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue