I recently configured Hudson to build a Grails project using Git as the repository. However, I am getting this error when running the build:
Compilation error: srcdir "/home/matthew/.hudson/jobs/qotd-idea/workspace/src/groovy" does not exist
This is because src/groovy is not copied into the Hudson workspace, so Hudson can't find the files. However, this directory is empty anyway. All the valid source files are under the grails-app folder.
On the flip-side, if I specify the project directory as a full path to my source, JUnit tests are not copied over because I am not using the Hudson workspace:
'test/results/TESTS-*.xml' doesn't match anything: even 'test' doesn't exist
How do I get both working together?