osmith has submitted this change. ( 
https://gerrit.osmocom.org/c/osmo-ci/+/38320?usp=email )

Change subject: jobs/master-builds: add param EMAIL_NOTIFICATIONS
......................................................................

jobs/master-builds: add param EMAIL_NOTIFICATIONS

Make it easy to disable mail notifications if running with a different
branch than master.

Change-Id: Ia8fa57f1efd04684f08db4377c42358c534faff9
---
M jobs/master-builds.yml
1 file changed, 5 insertions(+), 1 deletion(-)

Approvals:
  Jenkins Builder: Verified
  pespin: Looks good to me, but someone else must approve
  laforge: Looks good to me, approved




diff --git a/jobs/master-builds.yml b/jobs/master-builds.yml
index ee6947f..f711d4d 100644
--- a/jobs/master-builds.yml
+++ b/jobs/master-builds.yml
@@ -635,6 +635,10 @@
           name: BRANCH
           description: git branch
           default: '{obj:branch}'
+      - string:
+          name: EMAIL_NOTIFICATIONS
+          description: For failed build notifications, set to empty to disable
+          default: '{obj:email}'

     scm:
       - git:
@@ -675,7 +679,7 @@
        - trigger:
            project: 'Osmocom_OBS_master'
        - email:
-           recipients: '{obj:email}'
+           recipients: '$EMAIL_NOTIFICATIONS'
            send-to-individuals: true
     wrappers:
        - ssh-agent-credentials:

--
To view, visit https://gerrit.osmocom.org/c/osmo-ci/+/38320?usp=email
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings?usp=email

Gerrit-MessageType: merged
Gerrit-Project: osmo-ci
Gerrit-Branch: master
Gerrit-Change-Id: Ia8fa57f1efd04684f08db4377c42358c534faff9
Gerrit-Change-Number: 38320
Gerrit-PatchSet: 1
Gerrit-Owner: osmith <[email protected]>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <[email protected]>
Gerrit-Reviewer: osmith <[email protected]>
Gerrit-Reviewer: pespin <[email protected]>

Reply via email to