disabled mattermost notifications

This commit is contained in:
Morgan McMillian 2023-03-02 06:02:10 -08:00
parent c451d1148d
commit 1018335eae

18
Jenkinsfile vendored
View file

@ -4,7 +4,7 @@ pipeline {
stage('Build docker image') { stage('Build docker image') {
agent { label 'docker-build' } agent { label 'docker-build' }
steps { 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>)"
script { script {
docker.withRegistry('https://git.dreamfall.space/thrrgilag', 'docker-gitea-creds') { docker.withRegistry('https://git.dreamfall.space/thrrgilag', 'docker-gitea-creds') {
def customImage = docker.build('git.dreamfall.space/thrrgilag/kiln:latest') def customImage = docker.build('git.dreamfall.space/thrrgilag/kiln:latest')
@ -12,14 +12,14 @@ pipeline {
} }
} }
} }
post { // post {
success { // success {
mattermostSend color: "good", message: "Docker build success - ${env.JOB_NAME} ${env.BUILD_NUMBER} (<${env.BUILD_URL}|Open>)" // mattermostSend color: "good", message: "Docker build success - ${env.JOB_NAME} ${env.BUILD_NUMBER} (<${env.BUILD_URL}|Open>)"
} // }
failure { // failure {
mattermostSend color: "danger", message: "Docker build failure - ${env.JOB_NAME} ${env.BUILD_NUMBER} (<${env.BUILD_URL}|Open>)" // mattermostSend color: "danger", message: "Docker build failure - ${env.JOB_NAME} ${env.BUILD_NUMBER} (<${env.BUILD_URL}|Open>)"
} // }
} // }
} }
} }
} }