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

Post-send script setting disappears when saving job configuration

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • email-ext-plugin
    • None
    • Jenkins 1.642.2 and email-ext 2.41.3

      As reported by kramarz in pull request jenkinsci/email-ext-plugin#109:

      The post-send script setting, introduced in JENKINS-30854, disappears when saving job configuration.

      A workaround is to directly edit the config.xml job configuration file and include the following line after the <presendScript/> line:

            <postsendScript>$DEFAULT_POSTSEND_SCRIPT</postsendScript>
      

      Afterwards select "Reload Configuration from Disk" from "Manage Jenkins".

          [JENKINS-33205] Post-send script setting disappears when saving job configuration

          Johannes W added a comment -

          Johannes W added a comment - See https://github.com/jenkinsci/email-ext-plugin/pull/132 for a patch.

          Code changed in jenkins
          User: Johannes Weißl
          Path:
          src/main/java/hudson/plugins/emailext/ExtendedEmailPublisher.java
          src/main/resources/hudson/plugins/emailext/ExtendedEmailPublisher/config.groovy
          src/test/java/hudson/plugins/emailext/ExtendedEmailPublisherTest.java
          http://jenkins-ci.org/commit/email-ext-plugin/1832ae0be528892ace70e3787755db5b09e2a110
          Log:
          Fix JENKINS-33205 (disappearing post-send script project setting)

          The post-send script setting disappears when saving job configuration.

          This fixes up 51ab6c3 and adds a test.

          References:

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Johannes Weißl Path: src/main/java/hudson/plugins/emailext/ExtendedEmailPublisher.java src/main/resources/hudson/plugins/emailext/ExtendedEmailPublisher/config.groovy src/test/java/hudson/plugins/emailext/ExtendedEmailPublisherTest.java http://jenkins-ci.org/commit/email-ext-plugin/1832ae0be528892ace70e3787755db5b09e2a110 Log: Fix JENKINS-33205 (disappearing post-send script project setting) The post-send script setting disappears when saving job configuration. This fixes up 51ab6c3 and adds a test. References: https://issues.jenkins-ci.org/browse/JENKINS-33205 https://github.com/jenkinsci/email-ext-plugin/pull/109

          Code changed in jenkins
          User: Alex Earl
          Path:
          src/main/java/hudson/plugins/emailext/ExtendedEmailPublisher.java
          src/main/resources/hudson/plugins/emailext/ExtendedEmailPublisher/config.groovy
          src/test/java/hudson/plugins/emailext/ExtendedEmailPublisherTest.java
          http://jenkins-ci.org/commit/email-ext-plugin/79d69e25773c7c1755da3b74cceb7fc976330886
          Log:
          Merge pull request #132 from weisslj/fix-postsend-script-setting

          Fix JENKINS-33205 (disappearing post-send script project setting)

          Compare: https://github.com/jenkinsci/email-ext-plugin/compare/ab296248aa5a...79d69e25773c

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Alex Earl Path: src/main/java/hudson/plugins/emailext/ExtendedEmailPublisher.java src/main/resources/hudson/plugins/emailext/ExtendedEmailPublisher/config.groovy src/test/java/hudson/plugins/emailext/ExtendedEmailPublisherTest.java http://jenkins-ci.org/commit/email-ext-plugin/79d69e25773c7c1755da3b74cceb7fc976330886 Log: Merge pull request #132 from weisslj/fix-postsend-script-setting Fix JENKINS-33205 (disappearing post-send script project setting) Compare: https://github.com/jenkinsci/email-ext-plugin/compare/ab296248aa5a...79d69e25773c

          Alex Earl added a comment -

          Should be fixed in next release.

          Alex Earl added a comment - Should be fixed in next release.

            slide_o_mix Alex Earl
            jmuc Johannes W
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: