Skip to content

Commit 904fc25

Browse files
authored
Remove slack notifications
1 parent 8eaf7c1 commit 904fc25

File tree

1 file changed

+0
-24
lines changed

1 file changed

+0
-24
lines changed

.version/Jenkinsfile

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -35,17 +35,6 @@ def getLatestGitHubRelease(token, owner, repo) {
3535
version
3636
}
3737

38-
def slackSendMessage(success) {
39-
40-
if (success) {
41-
slackSend color: 'good', message: "Code Dx Kubernetes: Release stage succeeded: <${env.BUILD_URL}console|Open>"
42-
} else {
43-
withCredentials([string(credentialsId: 'dockerSlackChannel', variable: 'slackChannel')]) {
44-
slackSend channel: slackChannel, color: 'warning', message: "Code Dx Kubernetes: Release stage failed: <${env.BUILD_URL}console|Open>"
45-
}
46-
}
47-
}
48-
4938
pipeline {
5039

5140
options {
@@ -248,19 +237,6 @@ pipeline {
248237
}
249238
}
250239
}
251-
252-
post {
253-
success {
254-
script {
255-
slackSendMessage(true)
256-
}
257-
}
258-
failure {
259-
script {
260-
slackSendMessage(false)
261-
}
262-
}
263-
}
264240
}
265241
}
266242
}

0 commit comments

Comments
 (0)