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

Editable E-Mail Notification PreSend not loading CLASSPATH

    Details

    • Similar Issues:

      Description

      Loading libs described in the field: 'Additional Groovy ClassPath' does not seem to be working. I'm trying to add libs(jars) to the classpath which are stored in the project's ${WORKSPACE}. Execute System Groovy Script classpath var handles this no problem.

        Attachments

          Activity

          Hide
          slide_o_mix Alex Earl added a comment -

          Are you adding the classpath at the project level, or in the local config?

          Show
          slide_o_mix Alex Earl added a comment - Are you adding the classpath at the project level, or in the local config?
          Hide
          slide_o_mix Alex Earl added a comment -

          I think the problem is that the classpath is never resolved for environment variables, so ${WORKSPACE} isn't getting replaced with the path to the workspace. I'll play around with this some more and verify that is what is happening.

          Show
          slide_o_mix Alex Earl added a comment - I think the problem is that the classpath is never resolved for environment variables, so ${WORKSPACE} isn't getting replaced with the path to the workspace. I'll play around with this some more and verify that is what is happening.
          Hide
          jason_mcd Jason McDonald added a comment -

          Thank you. I haven't tried the full path either. I'll give it a go also, but it seems the most logical explanation.

          Show
          jason_mcd Jason McDonald added a comment - Thank you. I haven't tried the full path either. I'll give it a go also, but it seems the most logical explanation.
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Alex Earl
          Path:
          src/main/java/hudson/plugins/emailext/ExtendedEmailPublisher.java
          src/test/java/hudson/plugins/emailext/ExtendedEmailPublisherTest.java
          http://jenkins-ci.org/commit/email-ext-plugin/1a52cc262fda8de69128cc277bb03d6c8fe3b7de
          Log:
          Fix JENKINS-28145

          Added resolution of variables to the classpath expansion.

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Alex Earl Path: src/main/java/hudson/plugins/emailext/ExtendedEmailPublisher.java src/test/java/hudson/plugins/emailext/ExtendedEmailPublisherTest.java http://jenkins-ci.org/commit/email-ext-plugin/1a52cc262fda8de69128cc277bb03d6c8fe3b7de Log: Fix JENKINS-28145 Added resolution of variables to the classpath expansion.
          Hide
          slide_o_mix Alex Earl added a comment -

          Added expansion of variables to classpath resolution.

          Show
          slide_o_mix Alex Earl added a comment - Added expansion of variables to classpath resolution.

            People

            • Assignee:
              slide_o_mix Alex Earl
              Reporter:
              jason_mcd Jason McDonald
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: