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

Skips script when flagged to run when failing

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Component/s: postbuildscript-plugin
    • Labels:
      None
    • Environment:
      Jenkins ver. 2.109, PostBuildScript verions:
      2.6.0
    • Similar Issues:

      Description

      Example,
      In the Execute Scripts section, 

      there are two shell scripts in two different build steps.  The first one is in a post-build step that is only triggered when it is a status of Success. The second one is in a build step that is built no matter what (all highlighted).

      The 1st script fails for whatever reason, the 2nd one does not run even though it is in a separate build step and set to be built even on a failure. 

        Attachments

          Activity

          Hide
          dheid Daniel Heid added a comment -

          Thanks for reporting. I'll try to reproduce the problem.

          Show
          dheid Daniel Heid added a comment - Thanks for reporting. I'll try to reproduce the problem.
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Daniel Heid
          Path:
          README.md
          pom.xml
          src/main/java/org/jenkinsci/plugins/postbuildscript/processor/Processor.java
          http://jenkins-ci.org/commit/postbuildscript-plugin/f3e6270613524a8f6b1cdeae86fc854b02b78491
          Log:
          JENKINS-50799 Don't end script processing if any section failed

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Daniel Heid Path: README.md pom.xml src/main/java/org/jenkinsci/plugins/postbuildscript/processor/Processor.java http://jenkins-ci.org/commit/postbuildscript-plugin/f3e6270613524a8f6b1cdeae86fc854b02b78491 Log: JENKINS-50799 Don't end script processing if any section failed
          Hide
          dheid Daniel Heid added a comment -

          Okay, fixed it. Will be available in version 2.7.0 tomorrow. Thanks for improving the Jenkins PostBuildScript plugin!

          Show
          dheid Daniel Heid added a comment - Okay, fixed it. Will be available in version 2.7.0 tomorrow. Thanks for improving the Jenkins PostBuildScript plugin!
          Hide
          matthew_w Matthew Weiss added a comment -

          Thank you for the speedy response! I'll be installing it today. 

           

          Show
          matthew_w Matthew Weiss added a comment - Thank you for the speedy response! I'll be installing it today.   

            People

            • Assignee:
              dheid Daniel Heid
              Reporter:
              mweiss427 Matthew Weiss
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: