This is an automated email from the ASF dual-hosted git repository.
rombert pushed a commit to branch feature/SLING-7245
in repository https://gitbox.apache.org/repos/asf/sling-tooling-jenkins.git
The following commit(s) were added to refs/heads/feature/SLING-7245 by this
push:
new cd4c240 SLING-7245 - Validate pull requests using Jenkins
cd4c240 is described below
commit cd4c240daf78c18836dee8c813e7082aa2ccac64
Author: Robert Munteanu <[email protected]>
AuthorDate: Thu Dec 20 16:46:05 2018 +0100
SLING-7245 - Validate pull requests using Jenkins
Move BUILD_LOG access to emailExt invocation.
---
vars/slingOsgiBundleBuild.groovy | 12 ++++--------
1 file changed, 4 insertions(+), 8 deletions(-)
diff --git a/vars/slingOsgiBundleBuild.groovy b/vars/slingOsgiBundleBuild.groovy
index 7386994..1aa7803 100644
--- a/vars/slingOsgiBundleBuild.groovy
+++ b/vars/slingOsgiBundleBuild.groovy
@@ -141,15 +141,11 @@ def processResult(def currentBuild, String previous, def
recipients) {
echo "Status change is ${change}, notifications will be sent."
def subject = "[Jenkins] ${currentBuild.fullDisplayName} is ${change}"
- def body = """
- Please see ${currentBuild.absoluteUrl} for details.
- No further emails will be send until the status of the build is
changed.
+ emailExt subject: subject, body: """Please see ${currentBuild.absoluteUrl}
for details.
- Build log:
+No further emails will be sent until the status of the build is changed.
+Build log:
- ${BUILD_LOG}
- """
-
- emailExt subject: subject, body: body, replyTo: '[email protected]',
recipientProviders: recipientProviders, to: recipients.join(',')
+${BUILD_LOG}""", replyTo: '[email protected]', recipientProviders:
recipientProviders, to: recipients.join(',')
}
\ No newline at end of file