Skip to content

Download artifacts from Sonatype Nexus as part of a Capistrano v3 deployment.

License

Notifications You must be signed in to change notification settings

jmpage/capistrano_scm_nexus

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A gem that enables Capistrano 3 to download artifacts from Artifactory or Nexus and extract their contents to the release directory instead of using SCM to deploy an application.

Usage

Add gem 'capistrano_scm_nexus' to your Gemfile.

Add require 'capistrano_scm_nexus' to your Capfile.

Set the following configuration variables in config/deploy.rb or wherever relevant:

set :scm, 'nexus'
set :nexus_endpoint, 'http://nexus.example.com/nexus/content/repositories'
set :nexus_artifact_name, 'my-application'
set :nexus_artifact_version, '1.0.2'
set :nexus_repository, 'releases'
set :nexus_group_id, 'com.example'

Other useful variables:

  • nexus_strategy - Overrides the strategy used by this gem with the constant that you specify.

Based on the information you provide, the Nexus strategy will download a tgz from the nexus repository and untar and ungzip it into the releases directory.

This gem expects that you have already tarred and gzipped your application and uploaded it to nexus.

About

Download artifacts from Sonatype Nexus as part of a Capistrano v3 deployment.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages