Capistrano::Strategy::JenkinsArtifact
Capistrano 2 strategy that uses Jenkins' artifact as a distribution provider.
Installation
Add this line to your application's Gemfile:
gem 'capistrano-strategy-jenkins_artifact'
And then execute:
$ bundle
Or install it yourself as:
$ gem install capistrano-strategy-jenkins_artifact
Usage
In your Capfile
(config/deploy.rb
, or config/deploy/**/*.rb
):
General job
set :jenkins_origin, URI.parse('http://ci.example.com')
set :build_project, 'build-artifact-job'
set :deploy_via, :jenkins_artifact
Multibranch job
set :jenkins_origin, URI.parse('http://ci.example.com/job/multibranch-job')
set :is_multibranch_job, true
set :deploy_via, :jenkins_artifact
Contributing
Bug reports and pull requests are welcome on GitHub at https://github.com/aereal/capistrano-strategy-jenkins_artifact.
License
The gem is available as open source under the terms of the MIT License.