[JIRA] (JENKINS-55335) Support scripted and declarative pipelines in `ListRecipientProvider`
Title: Message Title Alex Earl closed an issue as Not A Defect I don't think ListRecipientProvider makes sense in the case of workflow since you can just use `to` like you found. FYI, feel free to make updates to the wiki if you find things missing. Jenkins / JENKINS-55335 Support scripted and declarative pipelines in `ListRecipientProvider` Change By: Alex Earl Status: Open Closed Resolution: Not A Defect Add Comment This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d) -- 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. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-issues/JIRA.196427.1545836391000.13362.1563310980188%40Atlassian.JIRA. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-55335) Support scripted and declarative pipelines in `ListRecipientProvider`
Title: Message Title Alex Earl assigned an issue to Alex Earl Jenkins / JENKINS-55335 Support scripted and declarative pipelines in `ListRecipientProvider` Change By: Alex Earl Assignee: David van Laatum Alex Earl Add Comment This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d) -- 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-55335) Support scripted and declarative pipelines in `ListRecipientProvider`
Title: Message Title Evgeny Arshinov edited a comment on JENKINS-55335 Re: Support scripted and declarative pipelines in `ListRecipientProvider` I have discovered another undocumented feature. It turned out that one can use `$DEFAULT_zzz` placeholders in pipelines, too. Normally, such things should be covered in the documentation. Also I also found out that one has to explicitly pass `subject: "$DEFAULT_SUBJECT" and to: "$DEFAULT_TO"`, although it would be nice if the plugin used these values by default.Having discovered all that, we can now use email-ext in our project, despite its poor documentation. The question about `ListRecipientProvider` remains open, though. Add Comment This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d) -- 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-55335) Support scripted and declarative pipelines in `ListRecipientProvider`
Title: Message Title Evgeny Arshinov commented on JENKINS-55335 Re: Support scripted and declarative pipelines in `ListRecipientProvider` I have discovered another undocumented feature. It turned out that one can use `$DEFAULT_zzz` placeholders in pipelines, too. Also I found out that one has to explicitly pass `subject: "$DEFAULT_SUBJECT" and to: "$DEFAULT_TO"`, although it would be nice if the plugin used these values by default. Having discovered all that, we can now use email-ext in our project, despite its poor documentation. The question about `ListRecipientProvider` remains open, though. Add Comment This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d) -- 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-55335) Support scripted and declarative pipelines in `ListRecipientProvider`
Title: Message Title Evgeny Arshinov edited a comment on JENKINS-55335 Re: Support scripted and declarative pipelines in `ListRecipientProvider` - Without `ListRecipientProvider` there is no way to send email notifications to a fixed recipients list that does not fall into any predefined recipientProviders category (see `recipientProvides` on https://jenkins.io/doc/pipeline/steps/email-ext/). This issue is a blocker for us, preventing the use of the plugin in our scripted pipeline jobs. -_Update_: Nevermind, I have just discovered the `to` argument. Add Comment This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d) -- 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-55335) Support scripted and declarative pipelines in `ListRecipientProvider`
Title: Message Title Evgeny Arshinov updated an issue Jenkins / JENKINS-55335 Support scripted and declarative pipelines in `ListRecipientProvider` Change By: Evgeny Arshinov [https://github.com/jenkinsci/email-ext-plugin/blob/ac54d2684668d12eae40189a55a30e677a813b03/src/main/java/hudson/plugins/emailext/plugins/recipients/ListRecipientProvider.java#L60]{code:java}@Override public boolean isApplicable(Class jobType) {return !jobType.getName().equals("org.jenkinsci.plugins.workflow.job.WorkflowJob");}{code} I wonder what is the problem with supporting `WorkflowJob` here? I believe, it is the job class used in both scripted and declarative pipelines. Pipeline script{code:java}node { emailext recipientProviders: [[$class: 'ListRecipientProvider']]}{code}gives me the following error:{code:java}java.lang.IllegalArgumentException: The following recipient providers do not support org.jenkinsci.plugins.workflow.job.WorkflowJob hudson.plugins.emailext.plugins.recipients.ListRecipientProvider at hudson.plugins.emailext.plugins.RecipientProvider.checkAllSupport(RecipientProvider.java:57) at hudson.plugins.emailext.EmailExtStep$EmailExtStepExecution.run(EmailExtStep.java:186) at hudson.plugins.emailext.EmailExtStep$EmailExtStepExecution.run(EmailExtStep.java:163) at org.jenkinsci.plugins.workflow.steps.AbstractSynchronousNonBlockingStepExecution$1$1.call(AbstractSynchronousNonBlockingStepExecution.java:47) at hudson.security.ACL.impersonate(ACL.java:273) at org.jenkinsci.plugins.workflow.steps.AbstractSynchronousNonBlockingStepExecution$1.run(AbstractSynchronousNonBlockingStepExecution.java:44) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748){code} I am trying to make email-ext in my scripted pipeline job send email notifications to the globally configured recipients list—the same that is used in the following freestyle job:!freestyle job configuration.png|thumbnail! Add Comment
[JIRA] (JENKINS-55335) Support scripted and declarative pipelines in `ListRecipientProvider`
Title: Message Title Evgeny Arshinov updated an issue Jenkins / JENKINS-55335 Support scripted and declarative pipelines in `ListRecipientProvider` Change By: Evgeny Arshinov Summary: Support scripted and declarative pipelines in `ListRecipientProvider` Add Comment This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d) -- 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.