This repo is an example of how to integrate with jenkins through a jenkinsfile
The pipeline is built on top of docker containers to download, build, test and deploy an app built on php5.6/mysql5.6 and using ruby 2.2.9 with capistrano to deploy the entire codebase to environment specific servers
Repo has an integration with jenkins setup over a secure localtunnel url
https://some_domain.localtunnel.me/github-webhook/