Improve slack message

This commit is contained in:
Pedro Algarvio 2019-07-05 17:01:55 +01:00
parent 62a2ee8773
commit 118fbf74a5
No known key found for this signature in database
GPG key ID: BB36BF6584A298FF
19 changed files with 19 additions and 19 deletions

View file

@ -82,7 +82,7 @@ node('docs') {
try {
slackSend channel: "#jenkins-prod-pr",
color: '#FF0000',
message: "FAILED: PR-Job: '${env.JOB_NAME} [${env.BUILD_NUMBER}]' (${env.BUILD_URL})"
message: "*${currentBuild.currentResult}*: ${currentBuild.getFullDisplayName()} (<${env.BUILD_URL}|open>)"
} catch (Exception e) {
sh 'echo Failed to send the Slack notification'
}

View file

@ -145,7 +145,7 @@ node('kitchen-slave') {
try {
slackSend channel: "#jenkins-prod-pr",
color: '#FF0000',
message: "FAILED: PR-Job: '${env.JOB_NAME} [${env.BUILD_NUMBER}]' (${env.BUILD_URL})"
message: "*${currentBuild.currentResult}*: ${currentBuild.getFullDisplayName()} (<${env.BUILD_URL}|open>)"
} catch (Exception e) {
sh 'echo Failed to send the Slack notification'
}

View file

@ -145,7 +145,7 @@ node('kitchen-slave') {
try {
slackSend channel: "#jenkins-prod-pr",
color: '#FF0000',
message: "FAILED: PR-Job: '${env.JOB_NAME} [${env.BUILD_NUMBER}]' (${env.BUILD_URL})"
message: "*${currentBuild.currentResult}*: ${currentBuild.getFullDisplayName()} (<${env.BUILD_URL}|open>)"
} catch (Exception e) {
sh 'echo Failed to send the Slack notification'
}

View file

@ -145,7 +145,7 @@ node('kitchen-slave') {
try {
slackSend channel: "#jenkins-prod-pr",
color: '#FF0000',
message: "FAILED: PR-Job: '${env.JOB_NAME} [${env.BUILD_NUMBER}]' (${env.BUILD_URL})"
message: "*${currentBuild.currentResult}*: ${currentBuild.getFullDisplayName()} (<${env.BUILD_URL}|open>)"
} catch (Exception e) {
sh 'echo Failed to send the Slack notification'
}

View file

@ -145,7 +145,7 @@ node('kitchen-slave') {
try {
slackSend channel: "#jenkins-prod-pr",
color: '#FF0000',
message: "FAILED: PR-Job: '${env.JOB_NAME} [${env.BUILD_NUMBER}]' (${env.BUILD_URL})"
message: "*${currentBuild.currentResult}*: ${currentBuild.getFullDisplayName()} (<${env.BUILD_URL}|open>)"
} catch (Exception e) {
sh 'echo Failed to send the Slack notification'
}

View file

@ -145,7 +145,7 @@ node('kitchen-slave') {
try {
slackSend channel: "#jenkins-prod-pr",
color: '#FF0000',
message: "FAILED: PR-Job: '${env.JOB_NAME} [${env.BUILD_NUMBER}]' (${env.BUILD_URL})"
message: "*${currentBuild.currentResult}*: ${currentBuild.getFullDisplayName()} (<${env.BUILD_URL}|open>)"
} catch (Exception e) {
sh 'echo Failed to send the Slack notification'
}

View file

@ -145,7 +145,7 @@ node('kitchen-slave') {
try {
slackSend channel: "#jenkins-prod-pr",
color: '#FF0000',
message: "FAILED: PR-Job: '${env.JOB_NAME} [${env.BUILD_NUMBER}]' (${env.BUILD_URL})"
message: "*${currentBuild.currentResult}*: ${currentBuild.getFullDisplayName()} (<${env.BUILD_URL}|open>)"
} catch (Exception e) {
sh 'echo Failed to send the Slack notification'
}

View file

@ -145,7 +145,7 @@ node('kitchen-slave') {
try {
slackSend channel: "#jenkins-prod-pr",
color: '#FF0000',
message: "FAILED: PR-Job: '${env.JOB_NAME} [${env.BUILD_NUMBER}]' (${env.BUILD_URL})"
message: "*${currentBuild.currentResult}*: ${currentBuild.getFullDisplayName()} (<${env.BUILD_URL}|open>)"
} catch (Exception e) {
sh 'echo Failed to send the Slack notification'
}

View file

@ -145,7 +145,7 @@ node('kitchen-slave') {
try {
slackSend channel: "#jenkins-prod-pr",
color: '#FF0000',
message: "FAILED: PR-Job: '${env.JOB_NAME} [${env.BUILD_NUMBER}]' (${env.BUILD_URL})"
message: "*${currentBuild.currentResult}*: ${currentBuild.getFullDisplayName()} (<${env.BUILD_URL}|open>)"
} catch (Exception e) {
sh 'echo Failed to send the Slack notification'
}

View file

@ -145,7 +145,7 @@ node('kitchen-slave') {
try {
slackSend channel: "#jenkins-prod-pr",
color: '#FF0000',
message: "FAILED: PR-Job: '${env.JOB_NAME} [${env.BUILD_NUMBER}]' (${env.BUILD_URL})"
message: "*${currentBuild.currentResult}*: ${currentBuild.getFullDisplayName()} (<${env.BUILD_URL}|open>)"
} catch (Exception e) {
sh 'echo Failed to send the Slack notification'
}

View file

@ -145,7 +145,7 @@ node('kitchen-slave') {
try {
slackSend channel: "#jenkins-prod-pr",
color: '#FF0000',
message: "FAILED: PR-Job: '${env.JOB_NAME} [${env.BUILD_NUMBER}]' (${env.BUILD_URL})"
message: "*${currentBuild.currentResult}*: ${currentBuild.getFullDisplayName()} (<${env.BUILD_URL}|open>)"
} catch (Exception e) {
sh 'echo Failed to send the Slack notification'
}

View file

@ -145,7 +145,7 @@ node('kitchen-slave') {
try {
slackSend channel: "#jenkins-prod-pr",
color: '#FF0000',
message: "FAILED: PR-Job: '${env.JOB_NAME} [${env.BUILD_NUMBER}]' (${env.BUILD_URL})"
message: "*${currentBuild.currentResult}*: ${currentBuild.getFullDisplayName()} (<${env.BUILD_URL}|open>)"
} catch (Exception e) {
sh 'echo Failed to send the Slack notification'
}

View file

@ -145,7 +145,7 @@ node('kitchen-slave') {
try {
slackSend channel: "#jenkins-prod-pr",
color: '#FF0000',
message: "FAILED: PR-Job: '${env.JOB_NAME} [${env.BUILD_NUMBER}]' (${env.BUILD_URL})"
message: "*${currentBuild.currentResult}*: ${currentBuild.getFullDisplayName()} (<${env.BUILD_URL}|open>)"
} catch (Exception e) {
sh 'echo Failed to send the Slack notification'
}

View file

@ -145,7 +145,7 @@ node('kitchen-slave') {
try {
slackSend channel: "#jenkins-prod-pr",
color: '#FF0000',
message: "FAILED: PR-Job: '${env.JOB_NAME} [${env.BUILD_NUMBER}]' (${env.BUILD_URL})"
message: "*${currentBuild.currentResult}*: ${currentBuild.getFullDisplayName()} (<${env.BUILD_URL}|open>)"
} catch (Exception e) {
sh 'echo Failed to send the Slack notification'
}

View file

@ -145,7 +145,7 @@ node('kitchen-slave') {
try {
slackSend channel: "#jenkins-prod-pr",
color: '#FF0000',
message: "FAILED: PR-Job: '${env.JOB_NAME} [${env.BUILD_NUMBER}]' (${env.BUILD_URL})"
message: "*${currentBuild.currentResult}*: ${currentBuild.getFullDisplayName()} (<${env.BUILD_URL}|open>)"
} catch (Exception e) {
sh 'echo Failed to send the Slack notification'
}

View file

@ -145,7 +145,7 @@ node('kitchen-slave') {
try {
slackSend channel: "#jenkins-prod-pr",
color: '#FF0000',
message: "FAILED: PR-Job: '${env.JOB_NAME} [${env.BUILD_NUMBER}]' (${env.BUILD_URL})"
message: "*${currentBuild.currentResult}*: ${currentBuild.getFullDisplayName()} (<${env.BUILD_URL}|open>)"
} catch (Exception e) {
sh 'echo Failed to send the Slack notification'
}

View file

@ -145,7 +145,7 @@ node('kitchen-slave') {
try {
slackSend channel: "#jenkins-prod-pr",
color: '#FF0000',
message: "FAILED: PR-Job: '${env.JOB_NAME} [${env.BUILD_NUMBER}]' (${env.BUILD_URL})"
message: "*${currentBuild.currentResult}*: ${currentBuild.getFullDisplayName()} (<${env.BUILD_URL}|open>)"
} catch (Exception e) {
sh 'echo Failed to send the Slack notification'
}

View file

@ -145,7 +145,7 @@ node('kitchen-slave') {
try {
slackSend channel: "#jenkins-prod-pr",
color: '#FF0000',
message: "FAILED: PR-Job: '${env.JOB_NAME} [${env.BUILD_NUMBER}]' (${env.BUILD_URL})"
message: "*${currentBuild.currentResult}*: ${currentBuild.getFullDisplayName()} (<${env.BUILD_URL}|open>)"
} catch (Exception e) {
sh 'echo Failed to send the Slack notification'
}

View file

@ -230,7 +230,7 @@ node('lint') {
try {
slackSend channel: "#jenkins-prod-pr",
color: '#FF0000',
message: "FAILED: PR-Job: '${env.JOB_NAME} [${env.BUILD_NUMBER}]' (${env.BUILD_URL})"
message: "*${currentBuild.currentResult}*: ${currentBuild.getFullDisplayName()} (<${env.BUILD_URL}|open>)"
} catch (Exception e) {
sh 'echo Failed to send the Slack notification'
}