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 350d7e5 SLING-7245 - Validate pull requests using Jenkins
350d7e5 is described below
commit 350d7e53142212f59006d2f473b452833c45401d
Author: Robert Munteanu <[email protected]>
AuthorDate: Thu Dec 20 16:46:05 2018 +0100
SLING-7245 - Validate pull requests using Jenkins
Only send notifications for builds on master
---
vars/slingOsgiBundleBuild.groovy | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/vars/slingOsgiBundleBuild.groovy b/vars/slingOsgiBundleBuild.groovy
index 294230d..3332864 100644
--- a/vars/slingOsgiBundleBuild.groovy
+++ b/vars/slingOsgiBundleBuild.groovy
@@ -110,6 +110,11 @@ def call(Map params = [:]) {
def processResult(def currentBuild, String previous, def recipients) {
+ if ( env.BRANCH_NAME != 'master' ) {
+ echo "Not sending notifications on branch name ${env.BRANCH_NAME} !=
'master'"
+ return
+ }
+
if ( !recipients ) {
echo "No recipients defined, not sending notifications."
return