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

Need "Pre-send Script" to support "classpath" options

    XMLWordPrintable

Details

    • Improvement
    • Status: Resolved (View Workflow)
    • Major
    • Resolution: Fixed
    • email-ext-plugin
    • None
    • All

    Description

      A customer request requires us to doctor the "To:" list based on certain criteria. I have the code working, but now there is a substantial body of code stuck in the template and so subject to loss/corruption.

      It would be nice if Pre-Send supported Classpath additions like Groovy Postbuild Plugin and/or Groovy (Executor) Plugin. That way the bulk of the code could existing under source control and the actual Pre-Send script could be little more than:

      def obj = new MyClass();
      obj.Execute();

      Attachments

        Activity

          slide_o_mix Alex Earl added a comment -

          Code merged for 2.39

          slide_o_mix Alex Earl added a comment - Code merged for 2.39

          Code changed in jenkins
          User: Jeff MAURY
          Path:
          src/main/java/hudson/plugins/emailext/ExtendedEmailPublisher.java
          http://jenkins-ci.org/commit/email-ext-plugin/21e066a5e1363115343226734765dca063ff1f11
          Log:
          Fix JENKINS-21672 - Removed dummy debug code

          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Jeff MAURY Path: src/main/java/hudson/plugins/emailext/ExtendedEmailPublisher.java http://jenkins-ci.org/commit/email-ext-plugin/21e066a5e1363115343226734765dca063ff1f11 Log: Fix JENKINS-21672 - Removed dummy debug code

          Code changed in jenkins
          User: Jeff MAURY
          Path:
          src/main/java/hudson/plugins/emailext/ExtendedEmailPublisher.java
          src/main/java/hudson/plugins/emailext/ExtendedEmailPublisherDescriptor.java
          src/main/java/hudson/plugins/emailext/GroovyScriptPath.java
          src/main/resources/hudson/plugins/emailext/ExtendedEmailPublisher/config.groovy
          src/main/resources/hudson/plugins/emailext/ExtendedEmailPublisher/global.groovy
          src/main/webapp/help/globalConfig/defaultClasspath.html
          src/main/webapp/help/projectConfig/defaultClasspath.html
          src/test/java/hudson/plugins/emailext/ExtendedEmailPublisherDescriptorTest.java
          src/test/java/hudson/plugins/emailext/ExtendedEmailPublisherTest.java
          src/test/presend/hudson/plugins/emailext/ExtendedEmailPublisherTestHelper.groovy
          http://jenkins-ci.org/commit/email-ext-plugin/9c57b9dde50bc8466360bc2e1ba863daaf9c423e
          Log:
          Fix JENKINS-21672 - Add classpath for presend script

          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Jeff MAURY Path: src/main/java/hudson/plugins/emailext/ExtendedEmailPublisher.java src/main/java/hudson/plugins/emailext/ExtendedEmailPublisherDescriptor.java src/main/java/hudson/plugins/emailext/GroovyScriptPath.java src/main/resources/hudson/plugins/emailext/ExtendedEmailPublisher/config.groovy src/main/resources/hudson/plugins/emailext/ExtendedEmailPublisher/global.groovy src/main/webapp/help/globalConfig/defaultClasspath.html src/main/webapp/help/projectConfig/defaultClasspath.html src/test/java/hudson/plugins/emailext/ExtendedEmailPublisherDescriptorTest.java src/test/java/hudson/plugins/emailext/ExtendedEmailPublisherTest.java src/test/presend/hudson/plugins/emailext/ExtendedEmailPublisherTestHelper.groovy http://jenkins-ci.org/commit/email-ext-plugin/9c57b9dde50bc8466360bc2e1ba863daaf9c423e Log: Fix JENKINS-21672 - Add classpath for presend script
          fmerrow Frank Merrow added a comment -

          Shows a fully configured Groovy Post Build script with two added ClassPaths

          fmerrow Frank Merrow added a comment - Shows a fully configured Groovy Post Build script with two added ClassPaths
          slide_o_mix Alex Earl added a comment -

          Can you give me some details on how you specify the classpath with the Groovy Postbuild Plugin? I've never used that plugin, so I'm not sure where to start looking in the source.

          slide_o_mix Alex Earl added a comment - Can you give me some details on how you specify the classpath with the Groovy Postbuild Plugin? I've never used that plugin, so I'm not sure where to start looking in the source.
          slide_o_mix Alex Earl added a comment -

          I'll have to look into how those other plugins do that, I am not familiar with them very much.

          slide_o_mix Alex Earl added a comment - I'll have to look into how those other plugins do that, I am not familiar with them very much.

          People

            jeffmaury Jeff MAURY
            fmerrow Frank Merrow
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: