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

Jenkins Maven Event Spy not working

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"
      

            cleclerc Cyrille Le Clerc
            bvale Bernardo Vale
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: