Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-35365

EMail-Ext Extended Pipeline Support - Recipient Providers

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      Add support for using recipient providers in workflows

      Return a list of emails from selected recipient providers:

      emailextrecipients([[$class: 'CulpritsRecipientProvider'], [$class: 'RequesterRecipientProvider']])

      eg:

      step([$class: 'Mailer', notifyEveryUnstableBuild: true, recipients: emailextrecipients([[$class: 'CulpritsRecipientProvider'], [$class: 'RequesterRecipientProvider']])])

      Send an email to abc plus any addresses returned by the providers:

      emailext body: 'A Test EMail', recipientProviders: [[$class: 'DevelopersRecipientProvider'], [$class: 'RequesterRecipientProvider']], subject: 'Test', to: 'abc'

        Attachments

          Issue Links

            Activity

            Hide
            davidvanlaatum David van Laatum added a comment - - edited

            Hmm yea getting the same thing on the work jenkins but been unable to reproduce anywhere else or figure out why. At least I know it's not some quirk of my work one now

            Show
            davidvanlaatum David van Laatum added a comment - - edited Hmm yea getting the same thing on the work jenkins but been unable to reproduce anywhere else or figure out why. At least I know it's not some quirk of my work one now
            Hide
            davidvanlaatum David van Laatum added a comment -

            Found it it was ignoring a class not found exception for workflowjob. Had to add an optional dependency on org.jenkins-ci.plugins.workflow::workflow-job plugin

            Show
            davidvanlaatum David van Laatum added a comment - Found it it was ignoring a class not found exception for workflowjob. Had to add an optional dependency on org.jenkins-ci.plugins.workflow::workflow-job plugin
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: David van Laatum
            Path:
            pom.xml
            src/main/java/hudson/plugins/emailext/EmailExtRecipientStep.java
            src/main/java/hudson/plugins/emailext/EmailExtStep.java
            src/main/java/hudson/plugins/emailext/plugins/RecipientProvider.java
            http://jenkins-ci.org/commit/email-ext-plugin/9982aea8c2d450ce547ac1480c23414382d2e839
            Log:
            JENKINS-35365 EMail-Ext Extended Pipeline Support - Recipient Providers
            fix for no options showing up on pipeline-syntax page

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: David van Laatum Path: pom.xml src/main/java/hudson/plugins/emailext/EmailExtRecipientStep.java src/main/java/hudson/plugins/emailext/EmailExtStep.java src/main/java/hudson/plugins/emailext/plugins/RecipientProvider.java http://jenkins-ci.org/commit/email-ext-plugin/9982aea8c2d450ce547ac1480c23414382d2e839 Log: JENKINS-35365 EMail-Ext Extended Pipeline Support - Recipient Providers fix for no options showing up on pipeline-syntax page
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: David van Laatum
            Path:
            pom.xml
            src/main/java/hudson/plugins/emailext/EmailExtRecipientStep.java
            src/main/java/hudson/plugins/emailext/EmailExtStep.java
            src/main/java/hudson/plugins/emailext/plugins/RecipientProvider.java
            src/main/java/hudson/plugins/emailext/plugins/RecipientProviderDescriptor.java
            src/main/java/hudson/plugins/emailext/plugins/recipients/CulpritsRecipientProvider.java
            src/main/java/hudson/plugins/emailext/plugins/recipients/DevelopersRecipientProvider.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/resources/hudson/plugins/emailext/EmailExtRecipientStep/config.jelly
            src/main/resources/hudson/plugins/emailext/EmailExtStep/config.jelly
            src/test/java/hudson/plugins/emailext/EmailTypeTest.java
            src/test/java/hudson/plugins/emailext/plugins/RecipientProviderTest.java
            src/test/java/hudson/plugins/emailext/plugins/content/ScriptContentTest.java
            src/test/java/hudson/plugins/emailext/plugins/recipients/CulpritsRecipientProviderTest.java
            src/test/java/hudson/plugins/emailext/plugins/recipients/DevelopersRecipientProviderTest.java
            src/test/java/hudson/plugins/emailext/plugins/recipients/MockUtilities.java
            src/test/java/hudson/plugins/emailext/plugins/recipients/RecipientProviderUtilitiesTest.java
            src/test/java/hudson/plugins/emailext/plugins/recipients/TestUtilities.java
            http://jenkins-ci.org/commit/email-ext-plugin/cedf5e8fac56aa3d6b9c4392ad181b9af8ca3406
            Log:
            Extended pipeline support (#135)

            JENKINS-35365 EMail-Ext Extended Pipeline Support - Recipient Providers

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: David van Laatum Path: pom.xml src/main/java/hudson/plugins/emailext/EmailExtRecipientStep.java src/main/java/hudson/plugins/emailext/EmailExtStep.java src/main/java/hudson/plugins/emailext/plugins/RecipientProvider.java src/main/java/hudson/plugins/emailext/plugins/RecipientProviderDescriptor.java src/main/java/hudson/plugins/emailext/plugins/recipients/CulpritsRecipientProvider.java src/main/java/hudson/plugins/emailext/plugins/recipients/DevelopersRecipientProvider.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/resources/hudson/plugins/emailext/EmailExtRecipientStep/config.jelly src/main/resources/hudson/plugins/emailext/EmailExtStep/config.jelly src/test/java/hudson/plugins/emailext/EmailTypeTest.java src/test/java/hudson/plugins/emailext/plugins/RecipientProviderTest.java src/test/java/hudson/plugins/emailext/plugins/content/ScriptContentTest.java src/test/java/hudson/plugins/emailext/plugins/recipients/CulpritsRecipientProviderTest.java src/test/java/hudson/plugins/emailext/plugins/recipients/DevelopersRecipientProviderTest.java src/test/java/hudson/plugins/emailext/plugins/recipients/MockUtilities.java src/test/java/hudson/plugins/emailext/plugins/recipients/RecipientProviderUtilitiesTest.java src/test/java/hudson/plugins/emailext/plugins/recipients/TestUtilities.java http://jenkins-ci.org/commit/email-ext-plugin/cedf5e8fac56aa3d6b9c4392ad181b9af8ca3406 Log: Extended pipeline support (#135) JENKINS-35365 EMail-Ext Extended Pipeline Support - Recipient Providers
            Hide
            davidvanlaatum David van Laatum added a comment -

            Released 2.44

            Show
            davidvanlaatum David van Laatum added a comment - Released 2.44

              People

              • Assignee:
                davidvanlaatum David van Laatum
                Reporter:
                davidvanlaatum David van Laatum
              • Votes:
                1 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: