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

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

    Details

    • Similar Issues:

      Description

      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?

        Attachments

          Activity

          Hide
          mwebber 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

          Show
          mwebber 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
          Hide
          dheid 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.

          Show
          dheid 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.
          Hide
          dheid Daniel Heid added a comment -

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

          Show
          dheid Daniel Heid added a comment - That has nothing to do with the master or slave limitation.
          Hide
          scm_issue_link 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

          Show
          scm_issue_link 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
          Hide
          dheid Daniel Heid added a comment -

          Fixed in version 1.1.1

          Show
          dheid Daniel Heid added a comment - Fixed in version 1.1.1
          Hide
          scm_issue_link 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

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

            People

            • Assignee:
              dheid Daniel Heid
              Reporter:
              weigao Wei Gao
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: