I have a system with Jenkins, Ant, PHP, PHPunit among other php tools.
Is it possible to make Jenkins push the into a remote server, use Ant to run the Tests and them retrieve the data about the tests?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I would write a separate ant-script and use ssh-support of ant for the tasks. The ssh-tasks worked very well for some of my projects in the past. This way Jenkins would run a local ant-build, which internally does all the remote access.
Another plus of this would be that you can manually run the ant-script (even parts of it) whenever necessary, which makes development and testing of it much easier.
See http://ant.apache.org/manual/Tasks/scp.html and http://ant.apache.org/manual/Tasks/sshexec.html for documentation of the ssh-related tasks in Ant.