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

Allow using 'emailext' step in pipeline without 'node'/workspace context

    Details

    • Similar Issues:

      Description

      Like mentioned in http://jenkins-ci.361315.n4.nabble.com/Email-Ext-and-Pipeline-Model-Definition-How-to-send-email-notifications-Culprits-and-Developers-as-r-td4853716.html#a4853724

      Pipeline failure message when using 'emailext' step outside a 'node' step:

      org.jenkinsci.plugins.workflow.steps.MissingContextVariableException: Required context class hudson.FilePath is missing

      Of course, Daniel Beck's comment "How else are you going to attach files?" makes sense.

      However, in my case I am not attaching any files and I am still using the Pipeline Script approach; seemingly in the Declarative Pipeline approach using a post build step to notify via 'emailext' step this is not an issue anymore?

      Thus, (hoping this is not difficult and/or a lot of effort for you) can you please change it to not require a wrapping into a 'node' step, when there is no usage of attaching files? And if and only if files are being attached, require the node/workspace context?

        Attachments

          Activity

          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/AttachmentUtils.java
          src/main/java/hudson/plugins/emailext/EmailExtStep.java
          src/main/java/hudson/plugins/emailext/ExtendedEmailPublisher.java
          http://jenkins-ci.org/commit/email-ext-plugin/5c81b10bf56d5a399507d95be581eef7668a31ce
          Log:
          JENKINS-42140 Allow using 'emailext' step in pipeline without 'node'/workspace context

          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/AttachmentUtils.java src/main/java/hudson/plugins/emailext/EmailExtStep.java src/main/java/hudson/plugins/emailext/ExtendedEmailPublisher.java http://jenkins-ci.org/commit/email-ext-plugin/5c81b10bf56d5a399507d95be581eef7668a31ce Log: JENKINS-42140 Allow using 'emailext' step in pipeline without 'node'/workspace context
          Hide
          davidvanlaatum David van Laatum added a comment -

          Version 2.57 released

          Show
          davidvanlaatum David van Laatum added a comment - Version 2.57 released
          Hide
          reinholdfuereder Reinhold Füreder added a comment -

          David van Laatum: Thanks for the extremely quick implementation!

          Show
          reinholdfuereder Reinhold Füreder added a comment - David van Laatum : Thanks for the extremely quick implementation!
          Hide
          brunolavit Bruno Lavit added a comment -

          David van Laatum Yes, thanks a lot!

          Show
          brunolavit Bruno Lavit added a comment - David van Laatum Yes, thanks a lot!

            People

            • Assignee:
              davidvanlaatum David van Laatum
              Reporter:
              reinholdfuereder Reinhold Füreder
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: