osmith submitted this change.
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(-)
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 change 38320. To unsubscribe, or for help writing mail filters, visit settings.