Skip to content

daithi-coombes/vagrant-jenkins-php

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

vagrant-jenkins-php

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

Installation

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.

Example

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.

rsync

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

About

Vagrant box for running Jenkins with PHP projects

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published