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

"trigger even if the build is unstable" is not honored in Maven builds

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major Major
    • maven-plugin
    • None
    • Platform: PC, OS: All

      I have a multi modules maven project
      I launch a hudson job for this project with multiple maven2 goals:

      test pmd:pmd cobertura:cobertura

      The post action (build another job) doesn't work even if i checked
      the box "trigger even the build is unstable"
      My project seems unstable (yellow)
      but the job after is never launched

          [JENKINS-2598] "trigger even if the build is unstable" is not honored in Maven builds

          sbechter added a comment -

          I have the same problem!
          The trigger to build another job works fine if the build is stable.

          sbechter added a comment - I have the same problem! The trigger to build another job works fine if the build is stable.

          mdonohue added a comment -

          Tighten up the summary.

          mdonohue added a comment - Tighten up the summary.

          alexanderlink added a comment -

          Created an attachment (id=782)
          Potential Patch

          alexanderlink added a comment - Created an attachment (id=782) Potential Patch

          alexanderlink added a comment -

          Hi,

          a colleague provided the attached patch for this issue.
          Can please someone review and integrate it if it is accepted?

          Thanks and regards,
          Alexander Link
          SAP AG

          alexanderlink added a comment - Hi, a colleague provided the attached patch for this issue. Can please someone review and integrate it if it is accepted? Thanks and regards, Alexander Link SAP AG

          Andrew Bayer added a comment -

          Taking issue.

          Andrew Bayer added a comment - Taking issue.

          Andrew Bayer added a comment -

          Patch looks good - I'll put it through some testing tomorrow and (assuming no
          problems) commit it then, in which case the fix should be live in 1.318.

          Andrew Bayer added a comment - Patch looks good - I'll put it through some testing tomorrow and (assuming no problems) commit it then, in which case the fix should be live in 1.318.

          Andrew Bayer added a comment -

          Ok, on further investigation, this is more confusing than I thought. =) The
          problem here is that the m2 projects' "build when SNAPSHOT dependency builds"
          option feeds into the same mechanics as the post-build trigger (and, for that
          matter, the "build modules in parallel" option relies on the same mechanics as
          well). I'm not sure if we really want the post-build trigger configuration to be
          doing anything to the m2 project-specific dependency build logic, and there's no
          clear way to distinguish between "this project is an m2 project-type dependency"
          and "this project is a build trigger-type dependency". Not to mention that the
          same project could show up in both categories.

          Let me think on this some.

          Andrew Bayer added a comment - Ok, on further investigation, this is more confusing than I thought. =) The problem here is that the m2 projects' "build when SNAPSHOT dependency builds" option feeds into the same mechanics as the post-build trigger (and, for that matter, the "build modules in parallel" option relies on the same mechanics as well). I'm not sure if we really want the post-build trigger configuration to be doing anything to the m2 project-specific dependency build logic, and there's no clear way to distinguish between "this project is an m2 project-type dependency" and "this project is a build trigger-type dependency". Not to mention that the same project could show up in both categories. Let me think on this some.

          Andrew Bayer added a comment -
              • Issue 3884 has been marked as a duplicate of this issue. ***

          Andrew Bayer added a comment - Issue 3884 has been marked as a duplicate of this issue. ***

          Andrew Bayer added a comment -
              • Issue 3122 has been marked as a duplicate of this issue. ***

          Andrew Bayer added a comment - Issue 3122 has been marked as a duplicate of this issue. ***

          evernat added a comment -

          Duplicates JENKINS-4739, which is already fixed.

          evernat added a comment - Duplicates JENKINS-4739 , which is already fixed.

            abayer Andrew Bayer
            ptvngagmail ptvngagmail
            Votes:
            7 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: