I am new to Jenkins and just started configuring it. This is what i have done till now:
- Installed and configured Jenkins to display the home page. Added PMD plugin.
- Set the
HUDSON_HOME
to a specific directory > C:\Work\Jenkins Configured a test build to run a simple do-nothing ant script. It runs successfully
Written an independent
pmdbuild.xml
to run checks on a set of files in C:\myview (I am using clearcase). This xml also copies the output pmd_results.xml to the workspace directory in$HUDSON_HOME/[job-name]/workspace
Now I added the
pmdbuild.xml
as a step in my primary build. So my build has 2 steps: a. Run a simple script, do-nothing. b. Run pmdbuild.xml
which generatepmd_results.xml
and place it in$HUDSON_HOME/[job-name]/workspace
(HARD-CODED as Jenkins PMD plugin expects the file there)Jenkins picks up the
pmd_results.xml
automatically with the plugin and displays warnings and everything.
Now the problem:
If I click on a filename in the PMD results, it gives a
filenotfound
exception as it is looking for the source file in$HUDSON_HOME/[job-name]/workspace
.My java code files are placed in C:\myview (a clearcase snapshot view)
My question is, do I need all my code files to be present inside $HUDSON_HOME/[job-name]/workspace
?? Meaning can't I tell Jenkins to look for the PMD input files in C:\myview or any other directory instead of $HUDSON_HOME/[job-name]/workspace
??
Sorry for the extremely long description.