Vagrant box for running Jenkins with PHP projects according to jenkins-php.org
nb project is in alpha
but beta is coming shortly. Make sure you read the issues
Vagrant box: https://atlas.hashicorp.com/daithi/boxes/jenkins-php
git clone https://github.com/daithi-coombes/vagrant-jenkins-php
cd vagrant-jenkins-php
vagrant up
goto http://localhost:8081 to access the Jenkins CI
. Also please read the issues as this project is still in alpha
- beta coming soon.
For this example take your project root as being /var/www/html/my-project/public_html
and this repository root as being at /opt/vagrant-jenkins-php
.
With the above the jenkins vm will automatically look project files in /opt/vagrant-jenkins-php/my-project
Then when you
want to build use rsync
to copy the files to the project
folder. Vagrant isn't handling linking too well so ln -s
symlinks aren't being followed by the vm.
To get around this I use my IDE's build functions to copy the project to the relevant folder.
cd /opt/vagrant-jenkins-php/project
rsync -av /var/www/html/my-project/public_html/* ./ --exclude vendor
Other copy commandlines: Copy folder recursively, excluding some folders