include url in status message

pull/1/head
Michael Kirk 6 years ago
parent b95dcd4ae3
commit edab44b899

4
Jenkinsfile vendored

@ -33,7 +33,7 @@ pipeline {
script { script {
// CHANGE_ID is set only for pull requests, so it is safe to access the pullRequest global variable // CHANGE_ID is set only for pull requests, so it is safe to access the pullRequest global variable
if (env.CHANGE_ID) { if (env.CHANGE_ID) {
def comment = pullRequest.comment("👍 Build PASSED commit: ${pullRequest.head}") def comment = pullRequest.comment("👍 Build PASSED commit: ${pullRequest.head}\nbuild: ${currentBuild.absoluteUrl}")
} }
} }
} }
@ -42,7 +42,7 @@ pipeline {
script { script {
// CHANGE_ID is set only for pull requests, so it is safe to access the pullRequest global variable // CHANGE_ID is set only for pull requests, so it is safe to access the pullRequest global variable
if (env.CHANGE_ID) { if (env.CHANGE_ID) {
def comment = pullRequest.comment("💥 Build FAILED commit: ${pullRequest.head}") def comment = pullRequest.comment("💥 Build FAILED commit: ${pullRequest.head}\nbuild: ${currentBuild.absoluteUrl}")
} }
} }
} }

Loading…
Cancel
Save