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

EMail-Ext Extended Pipeline Support - Recipient Providers

    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

            davidvanlaatum David van Laatum created issue -
            davidvanlaatum David van Laatum made changes -
            Field Original Value New Value
            Description Add support for using recipient providers in workflows
            davidvanlaatum David van Laatum made changes -
            Link This issue is related to JENKINS-34763 [ JENKINS-34763 ]
            davidvanlaatum David van Laatum made changes -
            Description Add support for using recipient providers in workflows Add support for using recipient providers in workflows

            Return a list of emails from selected recipient providers:
            {code}emailextrecipients([[$class: 'CulpritsRecipientProvider'], [$class: 'RequesterRecipientProvider']]){code}

            Send an email to abc plus any addresses returned by the providers:
            {code}emailext body: 'A Test EMail', recipientProviders: [[$class: 'DevelopersRecipientProvider'], [$class: 'RequesterRecipientProvider']], subject: 'Test', to: 'abc'{code}
            davidvanlaatum David van Laatum made changes -
            Description Add support for using recipient providers in workflows

            Return a list of emails from selected recipient providers:
            {code}emailextrecipients([[$class: 'CulpritsRecipientProvider'], [$class: 'RequesterRecipientProvider']]){code}

            Send an email to abc plus any addresses returned by the providers:
            {code}emailext body: 'A Test EMail', recipientProviders: [[$class: 'DevelopersRecipientProvider'], [$class: 'RequesterRecipientProvider']], subject: 'Test', to: 'abc'{code}
            Add support for using recipient providers in workflows

            Return a list of emails from selected recipient providers:
            {code}emailextrecipients([[$class: 'CulpritsRecipientProvider'], [$class: 'RequesterRecipientProvider']]){code}

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

            Send an email to abc plus any addresses returned by the providers:
            {code}emailext body: 'A Test EMail', recipientProviders: [[$class: 'DevelopersRecipientProvider'], [$class: 'RequesterRecipientProvider']], subject: 'Test', to: 'abc'{code}
            davidvanlaatum David van Laatum made changes -
            Summary Extended Pipeline Support - Recipient Providers EMail-Ext Extended Pipeline Support - Recipient Providers
            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/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/TestUtilities.java
            http://jenkins-ci.org/commit/email-ext-plugin/e6ed1ee6026d46b448df8e75c242e44edb35853e
            Log:
            JENKINS-35365 EMail-Ext Extended Pipeline Support - Recipient Providers

            Compare: https://github.com/jenkinsci/email-ext-plugin/compare/0ad633985b56^...e6ed1ee6026d

            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/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/TestUtilities.java http://jenkins-ci.org/commit/email-ext-plugin/e6ed1ee6026d46b448df8e75c242e44edb35853e Log: JENKINS-35365 EMail-Ext Extended Pipeline Support - Recipient Providers Compare: https://github.com/jenkinsci/email-ext-plugin/compare/0ad633985b56 ^...e6ed1ee6026d
            Hide
            abayer Andrew Bayer added a comment -

            So this is still hosed by JENKINS-24141 in terms of actually getting the culprits etc. =)

            Show
            abayer Andrew Bayer added a comment - So this is still hosed by JENKINS-24141 in terms of actually getting the culprits etc. =)
            Hide
            davidvanlaatum David van Laatum added a comment -

            No I have looked at the abstract builds getCulprits method and implemented something similar for pipelines while still using the existing method for others. When/If something better comes up Ill switch over

            Show
            davidvanlaatum David van Laatum added a comment - No I have looked at the abstract builds getCulprits method and implemented something similar for pipelines while still using the existing method for others. When/If something better comes up Ill switch over
            Hide
            davidvanlaatum David van Laatum added a comment -

            So just testing hopefully release in a few days

            Show
            davidvanlaatum David van Laatum added a comment - So just testing hopefully release in a few days
            Hide
            abayer Andrew Bayer added a comment -

            Interesting!

            Show
            abayer Andrew Bayer added a comment - Interesting!
            Show
            davidvanlaatum David van Laatum added a comment - https://repo.jenkins-ci.org/snapshots/org/jenkins-ci/plugins/email-ext/2.44-SNAPSHOT/email-ext-2.44-20160607.053328-1.hpi If your keen to try out
            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/plugins/recipients/CulpritsRecipientProvider.java
            src/test/java/hudson/plugins/emailext/plugins/recipients/MockUtilities.java
            src/test/java/hudson/plugins/emailext/plugins/recipients/RecipientProviderUtilitiesTest.java
            http://jenkins-ci.org/commit/email-ext-plugin/33bb4cd9f16f9f427355b50cfbbcc7bc3533c653
            Log:
            JENKINS-35365 EMail-Ext Extended Pipeline Support - Recipient Providers
            unit tests

            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/plugins/recipients/CulpritsRecipientProvider.java src/test/java/hudson/plugins/emailext/plugins/recipients/MockUtilities.java src/test/java/hudson/plugins/emailext/plugins/recipients/RecipientProviderUtilitiesTest.java http://jenkins-ci.org/commit/email-ext-plugin/33bb4cd9f16f9f427355b50cfbbcc7bc3533c653 Log: JENKINS-35365 EMail-Ext Extended Pipeline Support - Recipient Providers unit tests
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: David van Laatum
            Path:
            pom.xml
            src/test/java/hudson/plugins/emailext/EmailTypeTest.java
            http://jenkins-ci.org/commit/email-ext-plugin/ffe30d81f552b8b3551ca429f523e8fd9a288c91
            Log:
            JENKINS-35365 EMail-Ext Extended Pipeline Support - Recipient Providers
            unit tests

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: David van Laatum Path: pom.xml src/test/java/hudson/plugins/emailext/EmailTypeTest.java http://jenkins-ci.org/commit/email-ext-plugin/ffe30d81f552b8b3551ca429f523e8fd9a288c91 Log: JENKINS-35365 EMail-Ext Extended Pipeline Support - Recipient Providers unit tests
            Hide
            davidvanlaatum David van Laatum added a comment -

            I see multiple people have downloaded. Is it working for everyone? Im hoping to release tomorrow

            Show
            davidvanlaatum David van Laatum added a comment - I see multiple people have downloaded. Is it working for everyone? Im hoping to release tomorrow
            Hide
            rpaasche Robert Paasche added a comment -

            It works, but on the page "pipeline-syntax" the dropdown (on clicking add) seems to be empty.

            Show
            rpaasche Robert Paasche added a comment - It works, but on the page "pipeline-syntax" the dropdown (on clicking add) seems to be empty.
            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
            davidvanlaatum David van Laatum made changes -
            Status Open [ 1 ] Closed [ 6 ]
            Resolution Fixed [ 1 ]
            rtyler R. Tyler Croy made changes -
            Workflow JNJira [ 171655 ] JNJira + In-Review [ 210115 ]

              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: