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

Failed script will fail job even Mark build unstable is unchecked.

      I used to use postbuildscript plugin of old version. Since upgrade to latest version (1.1.0), if script failed, it will fail the whole job.
      [PostBuildScript] - [ERROR] Problem occurred: The script file path '"/usr/bin/tear_down.sh' doesn't exist.
      Build step 'Execute Scripts' changed build result to FAILURE
      Build step 'Execute Scripts' marked build as failure
      Is this by design?

          [JENKINS-48177] Failed script will fail job even Mark build unstable is unchecked.

          Maybe it's trying to run the script on the master rather than the agent.

          1.1.0 broke a lot of things - see JENKINS-48169 and JENKINS-48180

          Matthew Webber added a comment - Maybe it's trying to run the script on the master rather than the agent. 1.1.0 broke a lot of things - see JENKINS-48169 and  JENKINS-48180

          Daniel Heid added a comment -

          Thanks for reporting this bug. It should find the script. I'll try to fix this as soon as possible.

          Daniel Heid added a comment - Thanks for reporting this bug. It should find the script. I'll try to fix this as soon as possible.

          Daniel Heid added a comment -

          That has nothing to do with the master or slave limitation.

          Daniel Heid added a comment - That has nothing to do with the master or slave limitation.

          Code changed in jenkins
          User: Daniel Heid
          Path:
          src/main/java/org/jenkinsci/plugins/postbuildscript/Processor.java
          http://jenkins-ci.org/commit/postbuildscript-plugin/fc837be534a594cf6a1faf99be13d9dbe84ccf9c
          Log:
          JENKINS-48177 Even marking build as unstable when errors during script execution appear

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Daniel Heid Path: src/main/java/org/jenkinsci/plugins/postbuildscript/Processor.java http://jenkins-ci.org/commit/postbuildscript-plugin/fc837be534a594cf6a1faf99be13d9dbe84ccf9c Log: JENKINS-48177 Even marking build as unstable when errors during script execution appear

          Daniel Heid added a comment -

          Fixed in version 1.1.1

          Daniel Heid added a comment - Fixed in version 1.1.1

          Code changed in jenkins
          User: Daniel Heid
          Path:
          README.md
          http://jenkins-ci.org/commit/postbuildscript-plugin/e31d06489d30cc5299ae0b8cedd6d70bacd26fad
          Log:
          JENKINS-48177 Updated release notes

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Daniel Heid Path: README.md http://jenkins-ci.org/commit/postbuildscript-plugin/e31d06489d30cc5299ae0b8cedd6d70bacd26fad Log: JENKINS-48177 Updated release notes

            dheid Daniel Heid
            weigao Wei Gao
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: