Hudson/Jenkins Force.com configuration
Create a Free style job and configure the SCM and Build Triggers as needed.
Add the build step Invoke Ant and specify the targets which should be started (as in the example deployAndTestAndReport).
In the Post-build Actions section, configure as shown below
(click image to expand).
In the test report XMLs, replace the
test-report-xmlstring with your actual report directory (attribute reportDir in force-deploy-task).
In the test sources mapping pattern, replace src with your actual path to the source directory.
The above configuration is sufficient for most cases. In other cases do one of the following:
|If the force-deploy-task is defined in the distributed Ant script, which is called from the main Ant script||Configure the Report directory (the reportDir attribute value in the Ant script) in ALI Integration/ Advanced|
|If the source code directory, which contains folders, classes, triggers, and so on, is not in the src directory located directly in the workspace root||Configure the Project root|