[JIRA] (JENKINS-35367) EMail-Ext Extended Pipeline Support - Templates

2016-11-18 Thread aherit...@apache.org (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Arnaud Héritier commented on  JENKINS-35367  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: EMail-Ext Extended Pipeline Support - Templates   
 

  
 
 
 
 

 
 thanks David van Laatum  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c)  
 
 

 
   
 

  
 

  
 

   





-- 
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 jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] (JENKINS-35367) EMail-Ext Extended Pipeline Support - Templates

2016-11-18 Thread da...@vanlaatum.id.au (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 David van Laatum commented on  JENKINS-35367  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: EMail-Ext Extended Pipeline Support - Templates   
 

  
 
 
 
 

 
 not exactly the best of examples eg the recipient providers could be passed directly to emailext rather than going through emailextrecipients. It also replicates much of the features of emailext  

 

	// Append Culprits when the build is not successfull
	if (currentBuild.result != "SUCCESS") {
		to << emailextrecipients([[$class: 'CulpritsRecipientProvider']])
	}
 

 is redundant as CulpritsRecipientProvider only adds culprits to the list if the build failed. It also doesn't handle the body throwing an exception In theory this is better (untested) 

 

def call(body) {
// evaluate the body block, and collect configuration into the object
def config = [:]
body.resolveStrategy = Closure.DELEGATE_FIRST
body.delegate = config
try {
body()
} catch(e) {
currentBuild.result = "FAILURE";
throw e;
} finally {
def subject = config.subject ? config.subject : "${env.JOB_NAME} - Build #${env.BUILD_NUMBER} - ${currentBuild.result}!"
def content = '${JELLY_SCRIPT,template="static-analysis"}'
// Attach buildlog when the build is not successfull
def attachLog = (config.attachLog != null) ? config.attachLog : (currentBuild.result != "SUCCESS")
// Send email
emailext(body: content, mimeType: 'text/html',
replyTo: '$DEFAULT_REPLYTO', subject: subject,
to: config.emailRecipients, attachLog: attachLog, recipientProviders: [[$class: 'CulpritsRecipientProvider'], [$class: 'RequesterRecipientProvider']])
}
}
 

  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

[JIRA] (JENKINS-35367) EMail-Ext Extended Pipeline Support - Templates

2016-11-18 Thread aherit...@apache.org (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Arnaud Héritier commented on  JENKINS-35367  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: EMail-Ext Extended Pipeline Support - Templates   
 

  
 
 
 
 

 
 Hi David van Laatum  It could be interesting to add sendMail.groovy in the sample directory and a link in the plugin documentation WDYT?  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c)  
 
 

 
   
 

  
 

  
 

   





-- 
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 jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] (JENKINS-35367) EMail-Ext Extended Pipeline Support - Templates

2016-10-05 Thread jeffrey.kiezebr...@strukton.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 niet niet1 updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Jenkins /  JENKINS-35367  
 
 
  EMail-Ext Extended Pipeline Support - Templates   
 

  
 
 
 
 

 
Change By: 
 niet niet1  
 
 
Attachment: 
 sendMail.groovy  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c)  
 
 

 
   
 

  
 

  
 

   





-- 
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 jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] (JENKINS-35367) EMail-Ext Extended Pipeline Support - Templates

2016-10-05 Thread jeffrey.kiezebr...@strukton.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 niet niet1 commented on  JENKINS-35367  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: EMail-Ext Extended Pipeline Support - Templates   
 

  
 
 
 
 

 
 Thanks to the developer for making the support for the template Faheem Nadeem, see attachement sendMail.groovy for an example with template and tokens  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c)  
 
 

 
   
 

  
 

  
 

   





-- 
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 jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] (JENKINS-35367) EMail-Ext Extended Pipeline Support - Templates

2016-10-05 Thread fah...@cliqz.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Faheem Nadeem commented on  JENKINS-35367  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: EMail-Ext Extended Pipeline Support - Templates   
 

  
 
 
 
 

 
 Is their an example on how to use tokens?  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c)  
 
 

 
   
 

  
 

  
 

   





-- 
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 jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] (JENKINS-35367) EMail-Ext Extended Pipeline Support - Templates

2016-09-26 Thread matthewrei...@hotmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Matthew Reiter commented on  JENKINS-35367  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: EMail-Ext Extended Pipeline Support - Templates   
 

  
 
 
 
 

 
 I've opened JENKINS-38519 for the issue with FAILED_TESTS because it's not directly related to templates.  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c)  
 
 

 
   
 

  
 

  
 

   





-- 
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 jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] (JENKINS-35367) EMail-Ext Extended Pipeline Support - Templates

2016-09-26 Thread matthewrei...@hotmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Matthew Reiter commented on  JENKINS-35367  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: EMail-Ext Extended Pipeline Support - Templates   
 

  
 
 
 
 

 
 Even with version 2.50 the FAILED_TESTS macro does not work in pipeline builds; it gets expanded to "FAILED_TESTS is not supported in this context". I believe the problem is that FailedTestsContent was not updated to override the new signature for evaluate() that takes a Run object as opposed to an AbstractBuild object.  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c)  
 
 

 
   
 

  
 

  
 

   





-- 
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 jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] (JENKINS-35367) EMail-Ext Extended Pipeline Support - Templates

2016-09-23 Thread da...@vanlaatum.id.au (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 David van Laatum closed an issue as Fixed  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 version 2.50 release and should be available shortly  
 

  
 
 
 
 

 
 Jenkins /  JENKINS-35367  
 
 
  EMail-Ext Extended Pipeline Support - Templates   
 

  
 
 
 
 

 
Change By: 
 David van Laatum  
 
 
Status: 
 Open Closed  
 
 
Resolution: 
 Fixed  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c)  
 
 

 
   
 

  
 

  
 

   





-- 
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 jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit 

[JIRA] (JENKINS-35367) EMail-Ext Extended Pipeline Support - Templates

2016-09-23 Thread scm_issue_l...@java.net (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 SCM/JIRA link daemon commented on  JENKINS-35367  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: EMail-Ext Extended Pipeline Support - Templates   
 

  
 
 
 
 

 
 Code changed in jenkins User: David van Laatum Path: pom.xml src/main/java/hudson/plugins/emailext/AttachmentUtils.java src/main/java/hudson/plugins/emailext/EmailExtTemplateAction.java src/main/java/hudson/plugins/emailext/EmailExtTemplateActionFactory.java src/main/java/hudson/plugins/emailext/EmailRecipientUtils.java src/main/java/hudson/plugins/emailext/EmailType.java src/main/java/hudson/plugins/emailext/ExtendedEmailPublisher.java src/main/java/hudson/plugins/emailext/ExtendedEmailPublisherDescriptor.java src/main/java/hudson/plugins/emailext/GroovyScriptPath.java src/main/java/hudson/plugins/emailext/plugins/ContentBuilder.java src/main/java/hudson/plugins/emailext/plugins/CssInliner.java src/main/java/hudson/plugins/emailext/plugins/EmailToken.java src/main/java/hudson/plugins/emailext/plugins/EmailTrigger.java src/main/java/hudson/plugins/emailext/plugins/EmailTriggerDescriptor.java src/main/java/hudson/plugins/emailext/plugins/RecipientProvider.java src/main/java/hudson/plugins/emailext/plugins/ZipDataSource.java src/main/java/hudson/plugins/emailext/plugins/content/AbstractEvalContent.java src/main/java/hudson/plugins/emailext/plugins/content/FailedTestsContent.java src/main/java/hudson/plugins/emailext/plugins/content/JellyScriptContent.java src/main/java/hudson/plugins/emailext/plugins/content/ScriptContent.java src/main/java/hudson/plugins/emailext/plugins/content/ScriptContentBuildWrapper.java src/main/java/hudson/plugins/emailext/plugins/content/StaticAnalysisUtilities.java src/main/java/hudson/plugins/emailext/plugins/content/TemplateContent.java src/main/java/hudson/plugins/emailext/plugins/content/TestCountsContent.java src/main/java/hudson/plugins/emailext/plugins/content/TriggerNameContent.java src/main/java/hudson/plugins/emailext/plugins/recipients/CulpritsRecipientProvider.java src/main/java/hudson/plugins/emailext/plugins/recipients/FailingTestSuspectsRecipientProvider.java src/main/java/hudson/plugins/emailext/plugins/recipients/FirstFailingBuildSuspectsRecipientProvider.java src/main/java/hudson/plugins/emailext/plugins/recipients/ListRecipientProvider.java src/main/java/hudson/plugins/emailext/plugins/recipients/RecipientProviderUtilities.java src/main/java/hudson/plugins/emailext/plugins/recipients/RequesterRecipientProvider.java src/main/java/hudson/plugins/emailext/plugins/recipients/UpstreamComitterRecipientProvider.java src/main/java/hudson/plugins/emailext/plugins/trigger/AbortedTrigger.java src/main/java/hudson/plugins/emailext/plugins/trigger/AbstractScriptTrigger.java src/main/java/hudson/plugins/emailext/plugins/trigger/AlwaysTrigger.java src/main/java/hudson/plugins/emailext/plugins/trigger/BuildingTrigger.java src/main/java/hudson/plugins/emailext/plugins/trigger/FailureTrigger.java src/main/java/hudson/plugins/emailext/plugins/trigger/FirstFailureTrigger.java src/main/java/hudson/plugins/emailext/plugins/trigger/FirstUnstableTrigger.java src/main/java/hudson/plugins/emailext/plugins/trigger/FixedTrigger.java src/main/java/hudson/plugins/emailext/plugins/trigger/FixedUnhealthyTrigger.java src/main/java/hudson/plugins/emailext/plugins/trigger/ImprovementTrigger.java src/main/java/hudson/plugins/emailext/plugins/trigger/NotBuiltTrigger.java src/main/java/hudson/plugins/emailext/plugins/trigger/NthFailureTrigger.java src/main/java/hudson/plugins/emailext/plugins/trigger/PreBuildScriptTrigger.java src/main/java/hudson/plugins/emailext/plugins/trigger/PreBuildTrigger.java src/main/java/hudson/plugins/emailext/plugins/trigger/RegressionTrigger.java 

[JIRA] (JENKINS-35367) EMail-Ext Extended Pipeline Support - Templates

2016-09-20 Thread slide.o....@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Alex Earl commented on  JENKINS-35367  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: EMail-Ext Extended Pipeline Support - Templates   
 

  
 
 
 
 

 
 Release has been done  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c)  
 
 

 
   
 

  
 

  
 

   





-- 
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 jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] (JENKINS-35367) EMail-Ext Extended Pipeline Support - Templates

2016-09-16 Thread da...@vanlaatum.id.au (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 David van Laatum commented on  JENKINS-35367  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: EMail-Ext Extended Pipeline Support - Templates   
 

  
 
 
 
 

 
 The only option at the moment is to build the contents of the email programmatically in the groovy script. I have sent a email to the token macro plugin's maintainer asking for an update  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c)  
 
 

 
   
 

  
 

  
 

   





-- 
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 jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] (JENKINS-35367) EMail-Ext Extended Pipeline Support - Templates

2016-09-12 Thread budhi...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Ashudeep Budhiraja commented on  JENKINS-35367  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: EMail-Ext Extended Pipeline Support - Templates   
 

  
 
 
 
 

 
 Hi Team, David, Though email-ext involves lot and may need time, is there any basic level of template support existing currently? Thanks.  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c)  
 
 

 
   
 

  
 

  
 

   





-- 
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 jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] (JENKINS-35367) EMail-Ext Extended Pipeline Support - Templates

2016-09-05 Thread claus...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 clausfod commented on  JENKINS-35367  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: EMail-Ext Extended Pipeline Support - Templates   
 

  
 
 
 
 

 
 Any news on having the Template support via the Pipeline plugin  ?  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c)  
 
 

 
   
 

  
 

  
 

   





-- 
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 jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] (JENKINS-35367) EMail-Ext Extended Pipeline Support - Templates

2016-08-24 Thread da...@vanlaatum.id.au (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 David van Laatum commented on  JENKINS-35367  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: EMail-Ext Extended Pipeline Support - Templates   
 

  
 
 
 
 

 
 No I don't you can send emails using this just can't use the template functionality. ie you have to build the contents of the email in the groovy script  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c)  
 
 

 
   
 

  
 

  
 

   





-- 
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 jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] (JENKINS-35367) EMail-Ext Extended Pipeline Support - Templates

2016-08-24 Thread knut.karl...@chyronhego.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Knut Karlsen commented on  JENKINS-35367  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: EMail-Ext Extended Pipeline Support - Templates   
 

  
 
 
 
 

 
 Do you have any eta on the fix? We do not have any emails sent from failing pipeline jobs at the moment. Do you know if there is another way to send emails within the pipeline framework?  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c)  
 
 

 
   
 

  
 

  
 

   





-- 
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 jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] (JENKINS-35367) EMail-Ext Extended Pipeline Support - Templates

2016-08-18 Thread da...@vanlaatum.id.au (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 David van Laatum commented on  JENKINS-35367  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: EMail-Ext Extended Pipeline Support - Templates   
 

  
 
 
 
 

 
 I am well aware  currently waiting on the maintainer of the token-macros plugin to get back to me on a problem I encountered using his beta version that adds pipeline support it seems to work in my test cases just waiting for this problem to be resolved Alex Earl   
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c)  
 
 

 
   
 

  
 

  
 

   





-- 
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 jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] (JENKINS-35367) EMail-Ext Extended Pipeline Support - Templates

2016-08-18 Thread vollmer.m...@gfos.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Marc Vollmer commented on  JENKINS-35367  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: EMail-Ext Extended Pipeline Support - Templates   
 

  
 
 
 
 

 
 Would be nice to have this in Pipeline support. We have many jobs using the same templates. When someone joins or leaves the team I just have to edit the matching template and not every build. Since we started mograting builds to pipelines this is a blocker for some builds.  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c)  
 
 

 
   
 

  
 

  
 

   





-- 
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 jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.