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

Post-send script setting disappears when saving job configuration

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Minor
    • Resolution: Fixed
    • Component/s: email-ext-plugin
    • Labels:
      None
    • Environment:
      Jenkins 1.642.2 and email-ext 2.41.3
    • Similar Issues:

      Description

      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".

        Attachments

          Activity

          Hide
          jmuc Johannes W added a comment -
          Show
          jmuc Johannes W added a comment - See https://github.com/jenkinsci/email-ext-plugin/pull/132 for a patch.
          Hide
          scm_issue_link 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:

          Show
          scm_issue_link 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
          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/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

          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/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
          Hide
          slide_o_mix Alex Earl added a comment -

          Should be fixed in next release.

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

            People

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

              Dates

              • Created:
                Updated:
                Resolved: