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

Node Parameter option "run next build only if build succeeds" does not consider the publisher's result

    XMLWordPrintable

Details

    Description

      If you configure a Job with a Node Parameter and the following configuration

      • run next build only if build succeeds
      • node eligibility set to "All Nodes"
        and you select multiple nodes to build the job, the next build will always be triggered by the result of the main build action although a post build step (e.g. JUnit Test publisher) will mark the build as failed or unstable. I was expecting that the overall result will be considered before running the next build.

      I added three test cases to the NodeLabelParameterTest class of the acceptance test harness project to underline this

      One causes the main build to fail. In that case everything works as expected, subsequent builds are not started after the first build fails
      The other two test cases use publishers to change the build result. In both cases the job will be built on all nodes.

      Attachments

        Activity

          Code changed in jenkins
          User: Martin Ende
          Path:
          src/test/java/plugins/NodeLabelParameterPluginTest.java
          http://jenkins-ci.org/commit/acceptance-test-harness/33abc5f878987ed01a09c9be33e580da71c36afa
          Log:
          EDITORIAL: added reference to JENKINS-23129 to the two failing test cases

          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Martin Ende Path: src/test/java/plugins/NodeLabelParameterPluginTest.java http://jenkins-ci.org/commit/acceptance-test-harness/33abc5f878987ed01a09c9be33e580da71c36afa Log: EDITORIAL: added reference to JENKINS-23129 to the two failing test cases

          People

            Unassigned Unassigned
            hm_ende Martin Ende
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: