Prepare a PHP project for Jenkins

in previous article we have learn Building application in jenkins, Here I am describing how to create php application and build file which will contains all jenkins job information what he will do at the time of run.
I am just deploying a simple php file from our workspace to deploy directory. We have created build.xml file which will use ant for deploying file. This file contains all dependency and functionality which you want perform at the time of jenkins job will run.

1- We have workspace in d:\workspcae\demoAntBuild\
2- Here we have all source files and build.xml file.
3- We have write below code in build.xml file

Select Code
<project name="test">
 <copy file="user.php" tofile="C:/xampp/htdocs/test/user.php"/>

Now this file will associate as a build file in jenkins job.This is very simple tutorial of PHP project with jenkins.I hope this article will help you to understand jenkins functionality.

  • XiomaraSkinner

    Awesome post.