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

incremental builds leave modules unbuilt upon failure

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • maven-plugin
    • None

      We're using maven + hudson + java. I kicked off a build which resulted in a failure in a module. This left several modules unbuilt, even though they did not depend on the failed module. I kicked off a new build, however, the previously unbuilt modules were still not rebuilt. Please let me know if you need more information.

          [JENKINS-5764] incremental builds leave modules unbuilt upon failure

          matthewnewhook created issue -

          Alan Harder added a comment -

          config of your job and console logs from these builds would help.. or steps to reproduce the issue in a new install of a recent hudson release.

          Alan Harder added a comment - config of your job and console logs from these builds would help.. or steps to reproduce the issue in a new install of a recent hudson release.
          Alan Harder made changes -
          Component/s New: maven2 [ 15487 ]

          kutzi added a comment -

          I think the behaviour was fixed, so that unstable/failing modules are alway rebuild.
          Can you retest with a current version of Hudson?

          kutzi added a comment - I think the behaviour was fixed, so that unstable/failing modules are alway rebuild. Can you retest with a current version of Hudson?

          banoss added a comment - - edited

          I'm testing with 1.387.

          If there are, say, 3 modules and modules 1 & 3 need to be built. If module 1 fails and is subsequently fixed. Module 3 will never be built.

          Because module 3 was never built originally - due to module 1 failure - its then missed from subsequent incremental builds.

          Pretty basic to set up a test with one parent POM with say 3 modules.

          banoss added a comment - - edited I'm testing with 1.387. If there are, say, 3 modules and modules 1 & 3 need to be built. If module 1 fails and is subsequently fixed. Module 3 will never be built. Because module 3 was never built originally - due to module 1 failure - its then missed from subsequent incremental builds. Pretty basic to set up a test with one parent POM with say 3 modules.
          kutzi made changes -
          Link New: This issue is duplicated by JENKINS-8350 [ JENKINS-8350 ]
          kutzi made changes -
          Assignee New: kutzi [ kutzi ]
          kutzi made changes -
          Link New: This issue is related to JENKINS-5639 [ JENKINS-5639 ]

          kutzi added a comment -

          Idea:

          • when a build fails, store all modules which weren't build because of that in an Action attached to the build
          • on the next incremental build retrieve these modules from the Actions of a previously failed builds and add them to the build list

          kutzi added a comment - Idea: when a build fails, store all modules which weren't build because of that in an Action attached to the build on the next incremental build retrieve these modules from the Actions of a previously failed builds and add them to the build list
          kutzi made changes -
          Link New: This issue depends on JENKINS-9072 [ JENKINS-9072 ]

            kutzi kutzi
            matthewnewhook matthewnewhook
            Votes:
            2 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: