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

if triggered build FAILS or is UNSTABLE further build steps should not be executed

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      I have a freestyle project, that has 3 build step.

      1) compile and test with maven
      2) deploy to test environment and execute acceptance test as a parameterized triggered build
      3) deploy artifact to nexus with maven

      When the second step fails (due to problems in deployment or acceptance test) I would expect, that the third step (of deploying the artifact) is not executed at all.

        Attachments

          Activity

          haj031ch Hajo Eichler created issue -
          Hide
          haj031ch Hajo Eichler added a comment -

          Added two patches

          abortAfterBuildStep.patch: if one of the triggered builds is worse than SUCCESS, the triggering build will not executing the next build step, but all other triggered build of this step will still be executed.

          abortAfterEachTriggeredBuild.patch: as soon as one of the triggered builds is worse than SUCCESS, the triggering build will stop executing any further steps and any further triggered builds of the same step.

          It would of course be cool to have options for that in the configuration UI.

          Show
          haj031ch Hajo Eichler added a comment - Added two patches abortAfterBuildStep.patch: if one of the triggered builds is worse than SUCCESS, the triggering build will not executing the next build step, but all other triggered build of this step will still be executed. abortAfterEachTriggeredBuild.patch: as soon as one of the triggered builds is worse than SUCCESS, the triggering build will stop executing any further steps and any further triggered builds of the same step. It would of course be cool to have options for that in the configuration UI.
          haj031ch Hajo Eichler made changes -
          Field Original Value New Value
          Attachment abortAfterBuildStep.patch [ 20343 ]
          Attachment abortAfterEachTriggeredBuild.patch [ 20344 ]
          rseguy Romain Seguy made changes -
          Assignee huybrechts [ huybrechts ] rseguy [ rseguy ]
          rseguy Romain Seguy made changes -
          Status Open [ 1 ] In Progress [ 3 ]
          Hide
          rseguy Romain Seguy added a comment - - edited
          Show
          rseguy Romain Seguy added a comment - - edited Fixed. A pull request has been opened: https://github.com/jenkinsci/parameterized-trigger-plugin/pull/2
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Romain Seguy
          Path:
          src/main/java/hudson/plugins/parameterizedtrigger/BlockingBehaviour.java
          src/main/java/hudson/plugins/parameterizedtrigger/BuildTrigger.java
          src/main/java/hudson/plugins/parameterizedtrigger/BuildTriggerConfig.java
          src/main/java/hudson/plugins/parameterizedtrigger/TriggerBuilder.java
          src/main/resources/hudson/plugins/parameterizedtrigger/BlockableBuildTriggerConfig/help-block.html
          src/main/resources/hudson/plugins/parameterizedtrigger/BlockingBehaviour/config.jelly
          http://jenkins-ci.org/commit/parameterized-trigger-plugin/418d072595528ebae55e6f4dcdf7bca32972dc18
          Log:
          Merge pull request #2 from rseguy/master

          [FIXED JENKINS-9217 JENKINS-9391]

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Romain Seguy Path: src/main/java/hudson/plugins/parameterizedtrigger/BlockingBehaviour.java src/main/java/hudson/plugins/parameterizedtrigger/BuildTrigger.java src/main/java/hudson/plugins/parameterizedtrigger/BuildTriggerConfig.java src/main/java/hudson/plugins/parameterizedtrigger/TriggerBuilder.java src/main/resources/hudson/plugins/parameterizedtrigger/BlockableBuildTriggerConfig/help-block.html src/main/resources/hudson/plugins/parameterizedtrigger/BlockingBehaviour/config.jelly http://jenkins-ci.org/commit/parameterized-trigger-plugin/418d072595528ebae55e6f4dcdf7bca32972dc18 Log: Merge pull request #2 from rseguy/master [FIXED JENKINS-9217 JENKINS-9391]
          rseguy Romain Seguy made changes -
          Status In Progress [ 3 ] Resolved [ 5 ]
          Resolution Fixed [ 1 ]
          Hide
          dogfood dogfood added a comment -

          Integrated in plugins_parameterized-trigger #6
          [FIXED JENKINS-9217] Added a new option to allow build steps to fail based on the triggered builds' result

          rseguy :
          Files :

          • src/main/java/hudson/plugins/parameterizedtrigger/BlockingBehaviour.java
          • src/main/java/hudson/plugins/parameterizedtrigger/TriggerBuilder.java
          • src/main/resources/hudson/plugins/parameterizedtrigger/BlockingBehaviour/config.jelly
          • src/main/resources/hudson/plugins/parameterizedtrigger/BlockableBuildTriggerConfig/help-block.html
          Show
          dogfood dogfood added a comment - Integrated in plugins_parameterized-trigger #6 [FIXED JENKINS-9217] Added a new option to allow build steps to fail based on the triggered builds' result rseguy : Files : src/main/java/hudson/plugins/parameterizedtrigger/BlockingBehaviour.java src/main/java/hudson/plugins/parameterizedtrigger/TriggerBuilder.java src/main/resources/hudson/plugins/parameterizedtrigger/BlockingBehaviour/config.jelly src/main/resources/hudson/plugins/parameterizedtrigger/BlockableBuildTriggerConfig/help-block.html
          rtyler R. Tyler Croy made changes -
          Workflow JNJira [ 139373 ] JNJira + In-Review [ 188470 ]

            People

            • Assignee:
              rseguy Romain Seguy
              Reporter:
              haj031ch Hajo Eichler
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: