Hi Dirk,

Thanks SO MUCH for your help! It was indeed the lack of a SCM config for the project. I had to add the git plugin and config the workspace and build directories for Jenkins elsewhere than my eclipse workspace. Then I was able to specify the git repo as the eclipse project file path, as you said and just the plain pom.xml and it works! I am also seeing the graphs now that I have two builds under my belt. YAY!

So, it seems that there is an issue when configuring a maven project without an SCM, just to point that out. There is no way to specify where the pom resides, other than a file path to the pom.xml and that screws up the Jenkins project by burying the analysis stats inside each build (so the URL is mangled).

Thanks again, I now have my Jenkins totally squared away,
Rob

-----Original Message----- From: Dirk Weigenand
Sent: Friday, October 05, 2012 4:38 PM
To: jenkinsci-users@googlegroups.com
Subject: Re: no code analysis showing up with my builds

Hi,

i cloned your project from github and created a job for it in my jenkins
instance.

The job is of type maven 2/3, git is configured to a repository location
of file:///tmp/murmur-events.

I left the build configuration at default values (maven 3: a local maven
3 installation) and the default root pom location (pom.xml)

For good measure i configured build publishers for checkstyle, findbugs,
pmd, cpd).

The build runs fine and is successful.

After that i added code that would trigger new findbugs errors and run
the build anew (after checking in my change into the local git repository).

On the projects main page i now have all the diagrams one would expect
after configuring the above publishers.

The maven goals and options used are:

clean package pmd:pmd findbugs:findbugs pmd:cpd

I guess your problem is indeed related to the setup of your eclipse
project and git repository location.

For my projects the git repository corresponds to the eclipse project
folder, i.e.:

When my eclipse project is located in
/home/weigo/workspace/nifty-jenkins-plugin the git repository in jenkins
would be configured as file:///home/weigo/workspace/nifty-jenkins-plugin.

regards

Dirk

On 05.10.2012 04:18, Rob Withers wrote:
Well now, Dirk and Ulli, I have some analysis results in Jenkins, as it
turns out.  It just doesn't fall under my project murmur-events, it is a
level below, which is weird.

Here is my project page:  http://callistosheart:8888/job/murmur-events/
Here is my project page for the latest build:
http://callistosheart:8888/job/murmur-events/25/
Here is the page that displays the analysis result links:
http://callistosheart:8888/job/murmur-events/murmur-events$murmur-events/25/testReport/


How can I get it to show up in the parent?  Is this related to my
setting the global Jenkins workspace to my eclipse workspace
(c:\rob\comp\workspace), not having a global pom.xml, and having to
specify my project pom.xml as 'murmur-events/pom.xml'?  What to do, what
to do?  I would love this to show up in the parent.

Also, I do not see the duplicate code results (is that PDM?  If so, then
why three settings in the Jenkins project config for FindBugs, PDM AND
duplicate code?).

Thanks,
Rob


Reply via email to