I'm not 100% sure how git does tagging, but you could use branches to do 
something similar. After all, the difference between a branch and a tag in 
Subversion is that one is written to a directory called "tags" and one is 
written to a directory called "branches". Just create a release branch and copy 
the files to there. When the branch is updated, you get a build. 

However the power of Jenkins is continuous builds where you build and test each 
change. That way, you find problems early. 

What we do is a continuous build, and we actually release from one of Jenkins' 
builds — no special release build needed, so we can release immediately without 
doing a new build. 

If you only build upon release, how do you test your changes?

--
David Weintraub
da...@weintraub.name
Sent from my iPhone while riding in my Ferrari. (Jealous?)

On Feb 5, 2012, at 6:49 PM, Jon Schewe <jpsch...@mtu.net> wrote:

> I too would like to do this, except for git. I suspect he's not ONLY building 
> when the tag is applied, but rather doing like I do and use Jenkins to create 
> releases. So when a tag is applied I'd like Jenkins to build a new release to 
> ship to the customer.
> 
> On Sun, Feb 5, 2012 at 2:22 PM, David Weintraub <qazw...@gmail.com> wrote:
> Yes. You can if you're building Subversion. You can have a tag that's 
> constant like BUILD. When that tag changes, Jenkins will build based upon 
> that tag. 
> 
> However the purpose of Jenkins is a continuous build server. Building only 
> occasionally only when you tag seems to defeat the purpose 
> 
> On Sunday, February 5, 2012, ziggy <zigg...@gmail.com> wrote:
> > Is it possible to create a new job that is triggered if a new tag is
> > applied? For example if i apply a tag called PROJA-0.0.1-LIVE i would
> > like jenkins to automatically check out and build. The version number
> > changes everytime a tag is applied so if possible i would like to use
> > something like a regular expression. i.e. any tag that contains the
> > string %LIVE% should trigger a build.        Is this possible with CVS
> > or Subversion CM?
> 
> -- 
> David Weintraub
> qazw...@gmail.com
> 
> 
> 
> -- 
> Jon Schewe | http://mtu.net/~jpschewe
> 
> 

Reply via email to