Jenkins Maven Event Spy not working

This issue is archived. You can view it, but you can't modify it. Learn more

XMLWordPrintable

      We need the ability to trigger pipelines of projects that are maven dependencies. I know that the plugins say it has this feature but I couldn't make it work so far.
      Ā 
      After debugging for I while I found this log:
      Ā 

      Found 0 maven execution reports in...
      

      Looks like JenkinsĀ maven event spy is not working properly.

      Ā 

      I can see that the jar file was set correctly:

      Load embedded maven spy jar 'META-INF/lib/pipeline-maven-spy.jar'
      
      Load META-INF/lib/pipeline-maven-spy.jar using classloader class hudson.ClassicPluginStrategy$AntClassLoader2: AntClassLoader[/var/jenkins_home/plugins/pipeline-maven/WEB-INF/lib/annotation-indexer-1.9.jar:/var/jenkins_home/plugins/pipeline-maven/WEB-INF/lib/groovy-sandbox-1.10.jar:/var/jenkins_home/plugins/pipeline-maven/WEB-INF/lib/h2-1.4.196.jar:/var/jenkins_home/plugins/pipeline-maven/WEB-INF/lib/jboss-marshalling-1.4.9.Final.jar:/var/jenkins_home/plugins/pipeline-maven/WEB-INF/lib/jboss-marshalling-river-1.4.9.Final.jar:/var/jenkins_home/plugins/pipeline-maven/WEB-INF/lib/joda-time-2.9.5.jar:/var/jenkins_home/plugins/pipeline-maven/WEB-INF/lib/pipeline-maven.jar:/var/jenkins_home/plugins/pipeline-maven/WEB-INF/lib/xml-apis-1.4.01.jar]
      
      Generated wrapper: #!/bin/sh -e
      echo ----- withMaven Wrapper script -----
      /apps/maven/latest/bin/mvn --settings /apps/workspace/workspace/foundation@tmp/withMaven014c0f6a/settings.xml --batch-mode --show-version "$@"
      

      Env variable:

      JAVA_TOOL_OPTIONS=-Dmaven.ext.class.path="/apps/workspace/workspace/foundation@tmp/withMaven014c0f6a/pipeline-maven-spy.jar" -Dorg.jenkinsci.plugins.pipeline.maven.reportsFolder="/apps/workspace/workspace/foundation@tmp/withMaven014c0f6a"
      

            Assignee:
            Cyrille Le Clerc
            Reporter:
            Bernardo Vale
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Resolved:
              Archived: