I find the deployment of a binary artifact (be it a zip, a jar or whatever) is 
a perfectly valid scenario and Capistrano, even though not designed with that 
in mind, is flexible enough to let you do that. In fact, I do that myself.

In my setup, I have Jenkins build a couple of EARs for different projects. The 
relevant bits of my setup for deploying those are:

require 'capistrano-offroad' ## Overrides Ruby/Rails default tasks with blank 
ones [0]

require 'capistrano-scm-jenkins' ### [1]
set :scm,          :jenkins
set :repository,   "http://jenkins_url/job/#{application_name}_#{branch}_Build/";


That'll grab the latest successful build's artifacts in a ZIP file, send to the 
server and unpack as the current release.

After that, I have tasks overriding the default ones that do some copying of 
EARs and .properties files around as well as verifying that JBoss has 
successfully deployed the application, etc.

If you don't use jenkins and only want to deploy a binary, have a look at this 
old thread [2].

[0] https://github.com/mpasternacki/capistrano-offroad
[1] https://github.com/lidaobing/capistrano-scm-jenkins
[2] https://groups.google.com/forum/?fromgroups=#!topic/capistrano/0ApwPJk1NWc

- cassiano


On Wednesday, February 13, 2013 at 14:45, Andrian Jardan wrote:

> What if the SCM tool is actually used, but the deployment artifact is being 
> built from various SCM repos, with some additional steps on a build server, 
> so then you just have to deploy a zip with everything needed inside.
> 
> This is a very common case in today development environments, as not 
> everything can be stored in the repo.
> 
> On Tuesday, June 3, 2008 1:25:39 AM UTC+3, Dave wrote:
> > I would normally suggest overriding deploy:update_code.
> > 
> > But if you really aren't using an scm tool, you are begging for pain. There 
> > are MANY free ones out there, and many don't even require a server. Not 
> > using one is almost as bad as not keeping backups, and will probably bite 
> > you sooner.
> > 
> > On Sun, Jun 1, 2008 at 2:40 PM, ssmile73 <[email protected] 
> > (javascript:)> wrote:
> > > 
> > > I'm a newbie to cap. Docs for cap indicate using an scm tool (like
> > > subversion or darcs) to get the files.
> > > 
> > > However, in my case, I have a zip file available on the web. Zip file
> > > contains all the files for the application. Deploy task will have to
> > > download zip file from web and deploy it.
> > > 
> > > Any suggestions on how this could be done?
> > > 
> > > Thanks!
> > > 
> > > 
> > 
> -- 
> -- 
> * You received this message because you are subscribed to the Google Groups 
> "Capistrano" group.
> * To post to this group, send email to [email protected] 
> (mailto:[email protected])
> * To unsubscribe from this group, send email to 
> [email protected] 
> (mailto:[email protected]) For more options, visit this 
> group at http://groups.google.com/group/capistrano?hl=en
> --- 
> You received this message because you are subscribed to the Google Groups 
> "Capistrano" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected] 
> (mailto:[email protected]).
> For more options, visit https://groups.google.com/groups/opt_out.
>  
>  

-- 
-- 
* You received this message because you are subscribed to the Google Groups 
"Capistrano" group.
* To post to this group, send email to [email protected]
* To unsubscribe from this group, send email to 
[email protected] For more options, visit this group at 
http://groups.google.com/group/capistrano?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Capistrano" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to