From 051eb4c3dd8c08b117170981a9277d24c592deb9 Mon Sep 17 00:00:00 2001 From: Matt Mitchell Date: Mon, 7 Nov 2016 13:24:47 -0800 Subject: [PATCH] Remove email publishing calls The new server's email plugin version has different syntax and the email publishing doesn't work currently anyway. Will be re-enabled at a future time --- netci.groovy | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/netci.groovy b/netci.groovy index c684651cc1c..0a13152a259 100644 --- a/netci.groovy +++ b/netci.groovy @@ -10,19 +10,6 @@ def branchName = GithubBranchName // Folder that the project jobs reside in (project/branch) def projectFoldername = Utilities.getFolderName(projectName) + '/' + Utilities.getFolderName(branchName) -// Email the results of aborted / failed jobs to our infrastructure alias -static void addEmailPublisher(def myJob) { - myJob.with { - publishers { - extendedEmail('mlinfraswat@microsoft.com', '$DEFAULT_SUBJECT', '$DEFAULT_CONTENT') { - // trigger(trigger name, subject, body, recipient list, send to developers, send to requester, include culprits, send to recipient list) - trigger('Aborted', '$PROJECT_DEFAULT_SUBJECT', '$PROJECT_DEFAULT_CONTENT', null, false, false, false, true) - trigger('Failure', '$PROJECT_DEFAULT_SUBJECT', '$PROJECT_DEFAULT_CONTENT', null, false, false, false, true) - } - } - } -} - // Calls a web hook on Jenkins build events. Allows our build monitoring jobs to be push notified // vs. polling static void addBuildEventWebHook(def myJob) { @@ -68,7 +55,8 @@ static void addRoslynJob(def myJob, String jobName, String branchName, Boolean i Utilities.addGithubPRTriggerForBranch(myJob, branchName, contextName, triggerPhrase, triggerPhraseOnly) } else { Utilities.addGithubPushTrigger(myJob) - addEmailPublisher(myJob) + // TODO: Add once external email sending is available again + // addEmailPublisher(myJob) } addBuildEventWebHook(myJob) -- GitLab