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:
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