Nirav Shah commented on Bug JENKINS-27448

here is my presend script

def env = build.getEnvironment()
String A = env['Build Type'];
String B= env['Installer Changed'];
logger.println "Build is a " + A + " Build;
if (A == true | B == true)

{ logger.println "Email not sent for Debug Build"; cancel=true; }

I have a test running which uses robot framework and publishes result as SUCCESS or FAILURE.

Here is what happens at console output even though it prints the email not sent line.

Checking if email needs to be generated
15:31:15 Email was triggered for: Success
15:31:15 Sending email for trigger: Success
15:31:15 NOT overriding default server settings, using Mailer to create session
15:31:15 messageContentType = text/html; charset=UTF-8
15:31:15 Adding recipients from project recipient list
15:31:15 Adding recipients from trigger recipient list
15:31:15 Setting In-Reply-To since last build was not successful
15:31:15 Successfully created MimeMessage
15:31:15 Executing pre-send script
15:31:15 Build is a Debug Build
15:31:15 Email not sent for Debug Build
15:31:15
15:31:15 Sending email to: xxxxxxxxxx
15:31:15 Finished: SUCCESS

If you have any job with this presend script , the same behaviour is observed.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira

--
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to