Fetch the jenkins-cli.jar from your jenkins server:
wget http://localhost:8080/jnlpJars/jenkins-cli.jar
Download and install the job template:
curl -L https://raw.githubusercontent.com/sebastianbergmann/php-jenkins-template/master/config.xml | \
java -jar jenkins-cli.jar -s http://localhost:8080 create-job php-template
or add the template manually:
cd $JENKINS_HOME/jobs mkdir php-template cd php-template wget https://raw.github.com/sebastianbergmann/php-jenkins-template/master/config.xml cd .. chown -R jenkins:jenkins 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".
Uncheck the "Disable Build" option.
Fill in your "Source Code Management" information.
Configure a "Build Trigger", for instance "Poll SCM".
Click "Save".
Jenkins cannot find the php-template job. Make sure you cloned to the right directory. Check the permissions to make sure the Jenkins user has read and write access to the directory. Restart Jenkins.
Check the management panel http://localhost:8080/manage and the Jenkins log for messages.
The default for rendering HTML has been changed in Jenkins 1.553. To correctly display the charts generated by PHP_Depend, you need to enable security on http://localhost/configureSecurity/ and change the Markup Formatter to Raw HTML.