A majority of my projects are simple websites or scripts. Nothing too complicated.
My binary files are located on my development server. Jenkins combines the git repo and binary files into a single distribution which is then sync’d up to the target host.
- Don’t forget, no spaces in project names.
- Create a standard, free flow project (the first option).
- When the configure page comes up, select ‘git’ and enter in the git information.
- Select Poll SCM. Either * * * * * for checking every minute or some derivation. My first project is minute by minute, the current one is every hour.
- Next, add a build step of Execute Shell and add the necessary lines to collect the site and then sync it to the target host.
- Save it
- Now on the target host, create a jenkins account and change the ownership of the target directory to ‘jenkins:jenkins’
- Finally, select ‘Build now’ in Jenkins.
- In the project page, click the down arrow for the current build and view the console.
- Resolve any errors