disable mattermost notifications and snap build
This commit is contained in:
parent
1db11c1178
commit
d91154ec35
1 changed files with 20 additions and 20 deletions
40
Jenkinsfile
vendored
40
Jenkinsfile
vendored
|
@ -10,7 +10,7 @@ pipeline {
|
|||
stage('Build docker image') {
|
||||
agent { label 'docker-build' }
|
||||
steps {
|
||||
mattermostSend "Docker build started - ${env.JOB_NAME} ${env.BUILD_NUMBER} (<${env.BUILD_URL}|Open>)"
|
||||
// mattermostSend "Docker build started - ${env.JOB_NAME} ${env.BUILD_NUMBER} (<${env.BUILD_URL}|Open>)"
|
||||
cleanWs()
|
||||
checkout scm
|
||||
script {
|
||||
|
@ -20,22 +20,22 @@ pipeline {
|
|||
}
|
||||
}
|
||||
}
|
||||
post {
|
||||
success {
|
||||
mattermostSend color: "good", message: "Docker build success - ${env.JOB_NAME} ${env.BUILD_NUMBER} (<${env.BUILD_URL}|Open>)"
|
||||
}
|
||||
failure {
|
||||
mattermostSend color: "danger", message: "Docker build failure - ${env.JOB_NAME} ${env.BUILD_NUMBER} (<${env.BUILD_URL}|Open>)"
|
||||
}
|
||||
}
|
||||
// post {
|
||||
// success {
|
||||
// mattermostSend color: "good", message: "Docker build success - ${env.JOB_NAME} ${env.BUILD_NUMBER} (<${env.BUILD_URL}|Open>)"
|
||||
// }
|
||||
// failure {
|
||||
// mattermostSend color: "danger", message: "Docker build failure - ${env.JOB_NAME} ${env.BUILD_NUMBER} (<${env.BUILD_URL}|Open>)"
|
||||
// }
|
||||
// }
|
||||
}
|
||||
stage('Build snap packages') {
|
||||
// when { expression { false == true } }
|
||||
when { expression { false == true } }
|
||||
parallel {
|
||||
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>)"
|
||||
// mattermostSend "ARM64 Snap build started - ${env.JOB_NAME} ${env.BUILD_NUMBER} (<${env.BUILD_URL}|Open>)"
|
||||
cleanWs()
|
||||
checkout scm
|
||||
sh "snapcraft clean"
|
||||
|
@ -43,19 +43,19 @@ pipeline {
|
|||
}
|
||||
post {
|
||||
success {
|
||||
mattermostSend color: "good", message: "ARM64 Snap build success - ${env.JOB_NAME} ${env.BUILD_NUMBER} (<${env.BUILD_URL}|Open>)"
|
||||
// mattermostSend color: "good", message: "ARM64 Snap build success - ${env.JOB_NAME} ${env.BUILD_NUMBER} (<${env.BUILD_URL}|Open>)"
|
||||
archiveArtifacts artifacts: '*.snap'
|
||||
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>)"
|
||||
}
|
||||
// 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>)"
|
||||
// mattermostSend "AMD64 Snap build Started - ${env.JOB_NAME} ${env.BUILD_NUMBER} (<${env.BUILD_URL}|Open>)"
|
||||
cleanWs()
|
||||
checkout scm
|
||||
sh "snapcraft clean"
|
||||
|
@ -63,13 +63,13 @@ pipeline {
|
|||
}
|
||||
post {
|
||||
success {
|
||||
mattermostSend color: "good", message: "AMD64 Snap build success - ${env.JOB_NAME} ${env.BUILD_NUMBER} (<${env.BUILD_URL}|Open>)"
|
||||
// mattermostSend color: "good", message: "AMD64 Snap build success - ${env.JOB_NAME} ${env.BUILD_NUMBER} (<${env.BUILD_URL}|Open>)"
|
||||
archiveArtifacts artifacts: '*.snap'
|
||||
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>)"
|
||||
}
|
||||
// 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