-
Bug
-
Resolution: Fixed
-
Minor
-
None
The plugin fails to parse the Spy logs when the Job name contains characters not accepted in XML comments.
To reproduce the error it is enough to create a job with name TEST--job. The following message will appear in the Jenkins logs after the build finishes:
ERROR: [withMaven] WARNING Exception parsing the logs generated by the Jenkins Maven Event Spy /srv/jslave/workspace/TEST--job@tmp/withMavena4ea94cc/maven-spy-20170920-180259-419.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: 10; columnNumber: 33; The string "--" is not permitted within comments.
The plugin stores the job name as an XML comment in the Spy log and the job name is made of invalid characters for an XML comment.
Tested with pipeline-maven-plugin version 3.0.0
- is related to
-
JENKINS-60093 WARNING Exception parsing the Jenkins Maven Event Spy logs due to An invalid XML character
-
- Open
-
[JENKINS-47013] Exception parsing Spy log when Job name contains invalid XML characters (like "--")
Description |
Original:
The plugin fails to parse the Spy logs when the Job name contains characters not accepted in XML comments. To reproduce the error it is enough to create a job with name \{\{TEST–job}}. The following message will appear in the Jenkins logs after the build finishes: {code} ERROR: [withMaven] WARNING Exception parsing the logs generated by the Jenkins Maven Event Spy /srv/jslave/workspace/TEST--job@tmp/withMavena4ea94cc/maven-spy-20170920-180259-419.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: 10; columnNumber: 33; The string "--" is not permitted within comments.{code} The plugin stores the job name as an XML comment in the Spy log. |
New:
The plugin fails to parse the Spy logs when the Job name contains characters not accepted in XML comments. To reproduce the error it is enough to create a job with name {{TEST--job}}. The following message will appear in the Jenkins logs after the build finishes: {code:java} ERROR: [withMaven] WARNING Exception parsing the logs generated by the Jenkins Maven Event Spy /srv/jslave/workspace/TEST--job@tmp/withMavena4ea94cc/maven-spy-20170920-180259-419.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: 10; columnNumber: 33; The string "--" is not permitted within comments.{code} The plugin stores the job name as an XML comment in the Spy log. |
Description |
Original:
The plugin fails to parse the Spy logs when the Job name contains characters not accepted in XML comments. To reproduce the error it is enough to create a job with name {{TEST--job}}. The following message will appear in the Jenkins logs after the build finishes: {code:java} ERROR: [withMaven] WARNING Exception parsing the logs generated by the Jenkins Maven Event Spy /srv/jslave/workspace/TEST--job@tmp/withMavena4ea94cc/maven-spy-20170920-180259-419.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: 10; columnNumber: 33; The string "--" is not permitted within comments.{code} The plugin stores the job name as an XML comment in the Spy log. |
New:
The plugin fails to parse the Spy logs when the Job name contains characters not accepted in XML comments. To reproduce the error it is enough to create a job with name {{TEST--job}}. The following message will appear in the Jenkins logs after the build finishes: {code:java} ERROR: [withMaven] WARNING Exception parsing the logs generated by the Jenkins Maven Event Spy /srv/jslave/workspace/TEST--job@tmp/withMavena4ea94cc/maven-spy-20170920-180259-419.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: 10; columnNumber: 33; The string "--" is not permitted within comments.{code} The plugin stores the job name as an XML comment in the Spy log and the job name is made of invalid characters for an XML comment. |
Description |
Original:
The plugin fails to parse the Spy logs when the Job name contains characters not accepted in XML comments. To reproduce the error it is enough to create a job with name {{TEST--job}}. The following message will appear in the Jenkins logs after the build finishes: {code:java} ERROR: [withMaven] WARNING Exception parsing the logs generated by the Jenkins Maven Event Spy /srv/jslave/workspace/TEST--job@tmp/withMavena4ea94cc/maven-spy-20170920-180259-419.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: 10; columnNumber: 33; The string "--" is not permitted within comments.{code} The plugin stores the job name as an XML comment in the Spy log and the job name is made of invalid characters for an XML comment. |
New:
The plugin fails to parse the Spy logs when the Job name contains characters not accepted in XML comments. To reproduce the error it is enough to create a job with name {{TEST--job}}. The following message will appear in the Jenkins logs after the build finishes: {code:java} ERROR: [withMaven] WARNING Exception parsing the logs generated by the Jenkins Maven Event Spy /srv/jslave/workspace/TEST--job@tmp/withMavena4ea94cc/maven-spy-20170920-180259-419.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: 10; columnNumber: 33; The string "--" is not permitted within comments.{code} The plugin stores the job name as an XML comment in the Spy log and the job name is made of invalid characters for an XML comment. _Tested with pipeline-maven-plugin version 3.0.0_ |
Assignee | Original: Alvaro Lobato [ alobato ] | New: Cyrille Le Clerc [ cleclerc ] |
Status | Original: Open [ 1 ] | New: In Progress [ 3 ] |
Status | Original: In Progress [ 3 ] | New: In Review [ 10005 ] |
Resolution | New: Fixed [ 1 ] | |
Status | Original: In Review [ 10005 ] | New: Resolved [ 5 ] |
Status | Original: Resolved [ 5 ] | New: Closed [ 6 ] |
Link | New: This issue is related to JENKINS-60093 [ JENKINS-60093 ] |