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

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      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.
      

        Attachments

          Issue Links

            Activity

            Hide
            scm_issue_link 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

            Show
            scm_issue_link 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
            Hide
            scm_issue_link 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

            Show
            scm_issue_link 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
            Hide
            pino 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?

            Show
            pino 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?
            Hide
            scm_issue_link 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

            Show
            scm_issue_link 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
            Hide
            scm_issue_link 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)

            Show
            scm_issue_link 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)
            Hide
            cleclerc Cyrille Le Clerc added a comment -

            Merged

            Show
            cleclerc Cyrille Le Clerc added a comment - Merged
            Hide
            cleclerc Cyrille Le Clerc added a comment -

            v3.0.1

            Show
            cleclerc Cyrille Le Clerc added a comment - v3.0.1

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: