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

Disabled Jenkins Maven Event Spy generates an invalid XML build log file

    Details

    • Similar Issues:

      Description

      When the Jenkins Maven Event Spy is disabled, it generates an invalid XML build log file.

      We get the following message in the build logs

      ERROR: [withMaven] WARNING Exception parsing the logs generated by the Jenkins Maven Event Spy /opt/jenkins/jenkins-home/jobs/plugins/jobs/pipeline-maven-plugin/jobs/disable-maven-spy-with-environment-variable/workspace@tmp/withMaven344c0539/maven-spy-20170411-215312-455.log, ignore file.  Please report a bug associated for the component 'pipeline-maven-plugin' at https://issues.jenkins-ci.org 
      

      To reproduce:

      node ("master"){
         git "https://github.com/cyrille-leclerc/game-of-life.git"
         withMaven() {
            sh """
      export JENKINS_MAVEN_AGENT_DISABLED=true
      mvn package
      """
         }
      }

        Attachments

          Issue Links

            Activity

            cleclerc Cyrille Le Clerc created issue -
            cleclerc Cyrille Le Clerc made changes -
            Field Original Value New Value
            Description When the Jenkins Maven Event Spy is disabled, it generates an invalid XML build log file.

            We get the following message in the build logs
            {noformat}
            ERROR: [withMaven] WARNING Exception parsing the logs generated by the Jenkins Maven Event Spy /opt/jenkins/jenkins-home/jobs/plugins/jobs/pipeline-maven-plugin/jobs/disable-maven-spy-with-environment-variable/workspace@tmp/withMaven344c0539/maven-spy-20170411-215312-455.log, ignore file. Please report a bug associated for the component 'pipeline-maven-plugin' at https://issues.jenkins-ci.org
            {noformat}
            When the Jenkins Maven Event Spy is disabled, it generates an invalid XML build log file.

            We get the following message in the build logs
            {noformat}
            ERROR: [withMaven] WARNING Exception parsing the logs generated by the Jenkins Maven Event Spy /opt/jenkins/jenkins-home/jobs/plugins/jobs/pipeline-maven-plugin/jobs/disable-maven-spy-with-environment-variable/workspace@tmp/withMaven344c0539/maven-spy-20170411-215312-455.log, ignore file. Please report a bug associated for the component 'pipeline-maven-plugin' at https://issues.jenkins-ci.org
            {noformat}
            To reproduce:
            {code:java}
            node ("master"){
               git "https://github.com/cyrille-leclerc/game-of-life.git"
               withMaven() {
                  sh """
            export JENKINS_MAVEN_AGENT_DISABLED=true
            mvn package
            """
               }
            }{code}
            cleclerc Cyrille Le Clerc made changes -
            Link This issue is related to JENKINS-43261 [ JENKINS-43261 ]
            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/JenkinsMavenEventSpy.java
            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/JenkinsMavenEventSpyDisablementTest.java
            http://jenkins-ci.org/commit/pipeline-maven-plugin/d8c8b96e44a1b816847c9258d7f34830d9c3345b
            Log:
            JENKINS-43529 Don’t create an invalid build xml logs file when the Maven Event Spy is disabled

            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/JenkinsMavenEventSpy.java 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/JenkinsMavenEventSpyDisablementTest.java http://jenkins-ci.org/commit/pipeline-maven-plugin/d8c8b96e44a1b816847c9258d7f34830d9c3345b Log: JENKINS-43529 Don’t create an invalid build xml logs file when the Maven Event Spy is disabled
            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/JenkinsMavenEventSpy.java
            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/JenkinsMavenEventSpyDisablementTest.java
            http://jenkins-ci.org/commit/pipeline-maven-plugin/ebf74cb6fce8a7e71bee3fcdc9f40be3946dad8b
            Log:
            JENKINS-43529 Don’t create an invalid build xml logs file when the Maven Event Spy is disabled (#39)

            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/JenkinsMavenEventSpy.java 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/JenkinsMavenEventSpyDisablementTest.java http://jenkins-ci.org/commit/pipeline-maven-plugin/ebf74cb6fce8a7e71bee3fcdc9f40be3946dad8b Log: JENKINS-43529 Don’t create an invalid build xml logs file when the Maven Event Spy is disabled (#39)
            cleclerc Cyrille Le Clerc made changes -
            Status Open [ 1 ] In Progress [ 3 ]
            cleclerc Cyrille Le Clerc made changes -
            Status In Progress [ 3 ] In Review [ 10005 ]
            Hide
            cleclerc Cyrille Le Clerc added a comment -

            Fixed in 2.0.2

            Show
            cleclerc Cyrille Le Clerc added a comment - Fixed in 2.0.2
            cleclerc Cyrille Le Clerc made changes -
            Status In Review [ 10005 ] Resolved [ 5 ]
            Resolution Fixed [ 1 ]
            cleclerc Cyrille Le Clerc made changes -
            Status Resolved [ 5 ] Closed [ 6 ]
            jpyeron Jason Pyeron made changes -
            Link This issue is related to JENKINS-60093 [ JENKINS-60093 ]

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: