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

withMaven should detect when a maven build was interrupted instead of reporting an XML parsing exception

      When a Maven build is violently interrupted (kill -9, docker killing the process...), the pipeline maven plugin reports an XML parsing exception instead of clearly explaining that the Maven build was killed before its completion.

      ERROR: [withMaven] WARNING Exception parsing the logs generated by the Jenkins Maven Event Spy /var/lib/jenkins/workspace/_appia=gui/F__appia_-_gui_-_master@tmp/withMaven1afdee4c/maven-spy-20170831-215714-662.log, ignore file.  Please report a bug associated for the component 'pipeline-maven-plugin' at https://issues.jenkins-ci.org 
      ERROR: org.xml.sax.SAXParseException; lineNumber: 3824; columnNumber: 53; XML document structures must start and end within the same entity.
      

          [JENKINS-46609] withMaven should detect when a maven build was interrupted instead of reporting an XML parsing exception

          Code changed in jenkins
          User: Cyrille Le Clerc
          Path:
          maven-spy/src/main/java/org/jenkinsci/plugins/pipeline/maven/eventspy/reporter/FileMavenEventReporter.java
          maven-spy/src/test/java/org/jenkinsci/plugins/pipeline/maven/eventspy/JenkinsMavenEventSpyMTTest.java
          http://jenkins-ci.org/commit/pipeline-maven-plugin/54e8d0fb5e471a76e97e3f35bb24bcd56d57e1b1
          Log:
          JENKINS-46609 Suffix the maven report file by ".tmp" as long as the build has not finished

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Cyrille Le Clerc Path: maven-spy/src/main/java/org/jenkinsci/plugins/pipeline/maven/eventspy/reporter/FileMavenEventReporter.java maven-spy/src/test/java/org/jenkinsci/plugins/pipeline/maven/eventspy/JenkinsMavenEventSpyMTTest.java http://jenkins-ci.org/commit/pipeline-maven-plugin/54e8d0fb5e471a76e97e3f35bb24bcd56d57e1b1 Log: JENKINS-46609 Suffix the maven report file by ".tmp" as long as the build has not finished

          Code changed in jenkins
          User: Cyrille Le Clerc
          Path:
          maven-spy/src/main/java/org/jenkinsci/plugins/pipeline/maven/eventspy/reporter/FileMavenEventReporter.java
          maven-spy/src/test/java/org/jenkinsci/plugins/pipeline/maven/eventspy/JenkinsMavenEventSpyMTTest.java
          http://jenkins-ci.org/commit/pipeline-maven-plugin/c1e4daeb63b2aa9828e75b3ed099572a7bc22a0d
          Log:
          JENKINS-46609 Suffix the maven report file by ".tmp" as long as the… (#92)

          JENKINS-46609 Suffix the maven report file by ".tmp" as long as the build has not finished

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Cyrille Le Clerc Path: maven-spy/src/main/java/org/jenkinsci/plugins/pipeline/maven/eventspy/reporter/FileMavenEventReporter.java maven-spy/src/test/java/org/jenkinsci/plugins/pipeline/maven/eventspy/JenkinsMavenEventSpyMTTest.java http://jenkins-ci.org/commit/pipeline-maven-plugin/c1e4daeb63b2aa9828e75b3ed099572a7bc22a0d Log: JENKINS-46609 Suffix the maven report file by ".tmp" as long as the… (#92) JENKINS-46609 Suffix the maven report file by ".tmp" as long as the build has not finished

          Ok, I still get this error from time to time eventhough doubling the memory helped. How can I get the "real" error? Is there a way to retrieve the cause?

          Pino Silvaggio added a comment - Ok, I still get this error from time to time eventhough doubling the memory helped. How can I get the "real" error? Is there a way to retrieve the cause?

          Code changed in jenkins
          User: Cyrille Le Clerc
          Path:
          jenkins-plugin/src/main/java/org/jenkinsci/plugins/pipeline/maven/MavenSpyLogProcessor.java
          http://jenkins-ci.org/commit/pipeline-maven-plugin/7d10dd70e2c99f5c9773156795bdaa5b686420cb
          Log:
          JENKINS-46609 Show warning message when a maven execution has been interrupted and the Maven soy report is still a .tmp file

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Cyrille Le Clerc Path: jenkins-plugin/src/main/java/org/jenkinsci/plugins/pipeline/maven/MavenSpyLogProcessor.java http://jenkins-ci.org/commit/pipeline-maven-plugin/7d10dd70e2c99f5c9773156795bdaa5b686420cb Log: JENKINS-46609 Show warning message when a maven execution has been interrupted and the Maven soy report is still a .tmp file

          Code changed in jenkins
          User: Cyrille Le Clerc
          Path:
          jenkins-plugin/src/main/java/org/jenkinsci/plugins/pipeline/maven/MavenSpyLogProcessor.java
          http://jenkins-ci.org/commit/pipeline-maven-plugin/495521b5fef676651d111b80ce194dc9ea947241
          Log:
          JENKINS-46609 Show warning message when a maven execution has been interrupted and the Maven log report is still a .tmp file (#93)

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Cyrille Le Clerc Path: jenkins-plugin/src/main/java/org/jenkinsci/plugins/pipeline/maven/MavenSpyLogProcessor.java http://jenkins-ci.org/commit/pipeline-maven-plugin/495521b5fef676651d111b80ce194dc9ea947241 Log: JENKINS-46609 Show warning message when a maven execution has been interrupted and the Maven log report is still a .tmp file (#93)

          Merged

          Cyrille Le Clerc added a comment - Merged

          v3.0.1

          Cyrille Le Clerc added a comment - v3.0.1

            cleclerc Cyrille Le Clerc
            cleclerc Cyrille Le Clerc
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: