The Template for Jenkins Jobs for PHP Projects makes it easy to quickly set up a new job for a PHP project in Jenkins by removing the need to manually configure the post build actions. Here is how you use it:
Go into Jenkins' jobs directory and check out the php-jenkins-template project from its Git repository:
cd $JENKINS_HOME/jobs
git clone git://github.com/sebastianbergmann/php-jenkins-template.git php-template
chown -R jenkins:nogroup php-template/
Reload Jenkins' configuration, for instance using the Jenkins CLI:
java -jar jenkins-cli.jar -s http://localhost:8080 reload-configuration
Click on "New Job".
Enter a "Job name".
Select "Copy existing job" and enter "php-template" into the "Copy from" field.
Click "OK".
Replace "localhost:8080" with the hostname and port of your Jenkins installation and replace the two occurrences of "job-name" with the name of your job in the "Description" text box.
Disable the "Disable Build" option.
Fill in your "Source Code Management" information.
Configure a "Build Trigger", for instance "Poll SCM".
Click "Save".
Following these instructions is equivalent to following the manual configuration steps from Chapter 3 and Chapter 4.