Capistrano recipe to verify build status on Jenkins
gem install capistrano-jenkins
:jenkins_url
URL to jenkins, for password protected use format "http://username:[email protected]".
By default it will check for the URL in the environment variable JENKINS_URL.
:jenkins_job_name
The job name on jenkins
:jenkins_retry_sleep
How long between retries if build currently in progress.
Include the recipe
require 'capistrano-jenkins'
Set required parameters
set :branch, "master"
set :jenkins_job_name, "MyProject"
set :jenkins_url, "http://username:[email protected]"
Add the task, e.g on before
before "jenkins:verify_build"