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

Aborting a multimodule build can leave the sub projects in a bad state.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major Major
    • maven-plugin
    • None
    • Platform: HP, OS: Windows XP

      HUdson 1.140
      Java 1.6.0_01-b06
      Tomcat 6
      Windows XP
      dual processor

      I had a native m2 build with multiple modules, and noticed the build was
      hanging whilst download JUnit from central repo (most likely an issue with our
      proxy) so I aborted the job.

      The job aborted fine and project has been built several times since.

      However if I look at the module page for the project, the module that was in
      the process of being built for the aborted build still thinks it is in the
      process of being built.

      This causes errors with the update of the build history.

      Log of build#244 from the parent project
      ========================================
      started
      Checking out svn://xxxxxxxxx/xxx/xxxxxx/trunk
      <SNIP>
      At revision 412
      Parsing POMs
      $ C:\Progra~1\Java\jdk1.6.0_02/bin/java -cp "C:\Program Files\Apache Software
      Foundation\Tomcat 6.0\webapps\ROOT\WEB-INF\lib\maven-agent-1.140.jar;C:\Program
      Files\maven-2.0.6\boot\classworlds-1.1.jar" hudson.maven.agent.Main "C:\Program
      Files\maven-2.0.6" "C:\Program Files\Apache Software Foundation\Tomcat 6.0
      \webapps\ROOT\WEB-INF\lib\remoting-1.140.jar" "C:\Program Files\Apache Software
      Foundation\Tomcat 6.0\webapps\ROOT\WEB-INF\lib\maven-interceptor-1.140.jar"
      channel started
      [INFO] Scanning for projects...
      [INFO] Reactor build order:
      [INFO] ECM-Recorder
      [INFO] Config
      [INFO] Messages
      [INFO] Multicast-Receiver
      [INFO] ECM-Demux
      [INFO] VECM-Demux
      [INFO] Cryptoperiod-Latch
      [INFO] XTVS-Networking
      [INFO] Push-Output
      [INFO] ECMR-Application
      [INFO] -------------------------------------------------------------------------

      [INFO] Building ECM-Recorder
      [INFO] task-segment: [install]
      [INFO] -------------------------------------------------------------------------

      [INFO] [site:attach-descriptor]
      [INFO] Preparing source:jar
      [WARNING] Removing: jar from forked lifecycle, to prevent recursive invocation.
      [INFO] No goals needed for project - skipping
      [INFO] [source:jar

      {execution: attach-sources}

      ]
      [INFO] [install:install]
      [INFO] Installing c:\hudson\jobs\ECM-Recorder\workspace\trunk\pom.xml to
      C:\Documents and Settings\ShaperS\.m2\repository\com\nds\tvp\scg\ECM-
      Recorder\0.4-SNAPSHOT\ECM-Recorder-0.4-SNAPSHOT.pom
      [HUDSON] Archiving c:\hudson\jobs\ECM-Recorder\workspace\trunk\pom.xml
      [INFO] -------------------------------------------------------------------------

      [INFO] Building Config
      [INFO] task-segment: [install]
      [INFO] -------------------------------------------------------------------------

      [INFO] [resources:resources]
      [INFO] Using default encoding to copy filtered resources.
      [INFO] artifact junit:junit: checking for updates from central
      ERROR: Aborted
      java.lang.InterruptedException
      at java.lang.Object.wait(Native Method)
      at java.lang.Object.wait(Object.java:485)
      at hudson.remoting.Request.call(Request.java:81)
      at hudson.remoting.Channel.call(Channel.java:264)
      at hudson.maven.MavenModuleSetBuild$RunnerImpl.doRun
      (MavenModuleSetBuild.java:309)
      at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:181)
      at hudson.model.Run.run(Run.java:577)
      at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:172)
      at hudson.model.ResourceController.execute(ResourceController.java:66)
      at hudson.model.Executor.run(Executor.java:59)
      finished: FAILURE

      Log of the build from the module that thinks it is still building
      =================================================================
      [INFO] -------------------------------------------------------------------------

      [INFO] Building Config
      [INFO] task-segment: [install]
      [INFO] -------------------------------------------------------------------------

      [INFO] [resources:resources]
      [INFO] Using default encoding to copy filtered resources.
      [INFO] artifact junit:junit: checking for updates from central

            Unassigned Unassigned
            teilo James Nord
            Votes:
            2 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: