-
Create a project using the VDD site machine name
-
Tick "discard old builds"
-
Set strategy to "Log rotation" and keep 10 builds.
-
Set source management to git and enter the repository URL.
-
Checkout develop or master (develop for dev, master for stage).
-
Set the build to be a shell command and use the following commands:
ln -s docroot public_html echo "This project is managed by Jenkins" > README-jenkins
rsync -va --delete --exclude=sites/default/files --exclude=.git . /var/www/vhosts/[site]