Skip to content

Commit

Permalink
Reintroduce slack notifications
Browse files Browse the repository at this point in the history
  • Loading branch information
Lubomir-Jahn committed Jun 17, 2024
1 parent 1a9374f commit 1cf4620
Showing 1 changed file with 2 additions and 20 deletions.
22 changes: 2 additions & 20 deletions notifications/notifications.jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def sendSlackNotification(room, color, emoji) {
channel: "${room}",
color: color,
message: "${emoji} ${params.name} ${params.result.toLowerCase().capitalize()} after ${params.duration} ms ${params.url}",
tokenCredentialId: '7c7975fc-a95e-43ff-b7a9-5836e414d83b'
tokenCredentialId: 'slack-token'
}

def getTargetRoom(user) {
Expand All @@ -69,7 +69,7 @@ def getTargetRoom(user) {
if (user == "b-scholz") {
return "@U03D8TM2XN3"
}
if (user == "HerbertJordan" || user == "herbert") {
if (user == "HerbertJordan") {
return "@U03SL4URJSF"
}
if (user == "hkalina") {
Expand All @@ -90,23 +90,5 @@ def getTargetRoom(user) {
if (user == "marek") {
return "@U043805CT61"
}
if (user == "simon") {
return "@U06KY3VUG10"
}
if (user == "luis") {
return "@U074LLQ73EJ"
}
if (user == "facundo") {
return "@U06D59MAKTP"
}
if (user == "tosca") {
return "tosca-jenkins"
}
if (user == "carmen") {
return "jenkins-carmen"
}
if (user == "aida") {
return "aida-jenkins"
}
return "aida-jenkins"
}

0 comments on commit 1cf4620

Please sign in to comment.