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

Add checkbox to run script when build fails (as well as when it passes)

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Minor Minor
    • postbuildscript-plugin
    • None
    • Any

      Currently this plugin has a checkbox enabling it to run only when the preceding build passes.

      I have an application where I would like it to run only when the build fails. The tool would be more useful if it were available.

          [JENKINS-15395] Add checkbox to run script when build fails (as well as when it passes)

          lemmster added a comment -

          lemmster added a comment - https://github.com/jenkinsci/postbuildscript-plugin/pull/5

          Code changed in jenkins
          User: Markus Alexander Kuppe
          Path:
          src/main/java/org/jenkinsci/plugins/postbuildscript/PostBuildScript.java
          src/main/resources/org/jenkinsci/plugins/postbuildscript/PostBuildScript/config.jelly
          http://jenkins-ci.org/commit/postbuildscript-plugin/e1f5c60fe99c70669df7fb57a24847f5cdf05630
          Log:
          JENKINS-15395
          Add checkbox to run script when build fails
          https://issues.jenkins-ci.org/browse/JENKINS-15395

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Markus Alexander Kuppe Path: src/main/java/org/jenkinsci/plugins/postbuildscript/PostBuildScript.java src/main/resources/org/jenkinsci/plugins/postbuildscript/PostBuildScript/config.jelly http://jenkins-ci.org/commit/postbuildscript-plugin/e1f5c60fe99c70669df7fb57a24847f5cdf05630 Log: JENKINS-15395 Add checkbox to run script when build fails https://issues.jenkins-ci.org/browse/JENKINS-15395

          Code changed in jenkins
          User: Gregory Boissinot
          Path:
          src/main/java/org/jenkinsci/plugins/postbuildscript/PostBuildScript.java
          src/main/resources/org/jenkinsci/plugins/postbuildscript/PostBuildScript/config.jelly
          http://jenkins-ci.org/commit/postbuildscript-plugin/bc2ecc139b71563fe3afcd96e526589ccb3dad14
          Log:
          Merge pull request #5 from lemmy/master

          JENKINS-15395 - Add checkbox to run script when build fails

          Compare: https://github.com/jenkinsci/postbuildscript-plugin/compare/2a728e88fc52...bc2ecc139b71


          You received this message because you are subscribed to the Google Groups "Jenkins Commits" group.
          To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-commits+unsubscribe@googlegroups.com.
          For more options, visit https://groups.google.com/groups/opt_out.

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Gregory Boissinot Path: src/main/java/org/jenkinsci/plugins/postbuildscript/PostBuildScript.java src/main/resources/org/jenkinsci/plugins/postbuildscript/PostBuildScript/config.jelly http://jenkins-ci.org/commit/postbuildscript-plugin/bc2ecc139b71563fe3afcd96e526589ccb3dad14 Log: Merge pull request #5 from lemmy/master JENKINS-15395 - Add checkbox to run script when build fails Compare: https://github.com/jenkinsci/postbuildscript-plugin/compare/2a728e88fc52...bc2ecc139b71 – You received this message because you are subscribed to the Google Groups "Jenkins Commits" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-commits+unsubscribe@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out .

          Hello,
          Not sure if its related but i see a weird issue when i use Description Setter as part of Post Build step (using Post-Build Script Plug-in), but its only working if the Build is successful. From the logs i see, for failed builds description-setter is not called. I have two steps as part of Post Build first one is Windows batch command which executes a Python utility and second is the Set Build Description.

          Also, i have unchecked the "Execute script only if build succeeds" and "Execute script only if build fails" option.

          I am using Jenkins v 2.10, Description Setter v1.10 and Post-Build Script Plug-in v0.17

          FYI... i have discussed this issue here https://issues.jenkins-ci.org/browse/JENKINS-28006 as well.

          Any comments on this please?

          Thanks..

          Alokkumar Mahajan added a comment - Hello, Not sure if its related but i see a weird issue when i use Description Setter as part of Post Build step (using Post-Build Script Plug-in), but its only working if the Build is successful. From the logs i see, for failed builds description-setter is not called. I have two steps as part of Post Build first one is Windows batch command which executes a Python utility and second is the Set Build Description. Also, i have unchecked the "Execute script only if build succeeds" and "Execute script only if build fails" option. I am using Jenkins v 2.10, Description Setter v1.10 and Post-Build Script Plug-in v0.17 FYI... i have discussed this issue here https://issues.jenkins-ci.org/browse/JENKINS-28006 as well. Any comments on this please? Thanks..

          Alokkumar Mahajan added a comment - - edited

          Can somebody please let me know if i should create new defect for issues i mentioned in my previous comments on 2016/Nov/08 9:49 AM?

          Thanks.

          Alokkumar Mahajan added a comment - - edited Can somebody please let me know if i should create new defect for issues i mentioned in my previous comments on 2016/Nov/08 9:49 AM? Thanks.

            gbois Gregory Boissinot
            mmlegra Matt Legrand
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: