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
2- Here we have all source files and
3- We have write below code in
1 2 3
<project name="test"> <copy file="user.php" tofile="C:/xampp/htdocs/test/user.php"/> </project>
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.