Quantcast

Making Feature Branches Effective with Continuous Integration

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Making Feature Branches Effective with Continuous Integration

Gustavo Leite de Mendonça Chaves
This is the title of an Atlassian Blog Post which tells about a new feature in Bamboo 4 called Plan Branches. The idea (as I understood it from the post, since I don't use Bamboo myself) is that after you have configured a job for a project and pointed it to the SCM master/trunk, you can then automatically create derived jobs which share almost every configuration with the master's job but which fetch the source from a specific branch. You can even enable "automatic branch detection" so that these derived jobs are created automatically when Bamboo detects that a new branch has been created.

Does anyone knows anything like that for Jenkins? I'd love to be able to use it.

Gustavo.

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

RE: Making Feature Branches Effective with Continuous Integration

Todd Greer

This would be a very useful feature (I’m suddenly very interested in Bamboo), and I’d be very happy to test it and probably contribute occasional fixes if anyone decides to pursue it.

 

--

Todd

 

From: [hidden email] [mailto:[hidden email]] On Behalf Of Gustavo Leite de Mendonça Chaves
Sent: Friday, April 27, 2012 12:07 PM
To: [hidden email]
Subject: Making Feature Branches Effective with Continuous Integration

 

This is the title of an Atlassian Blog Post which tells about a new feature in Bamboo 4 called Plan Branches. The idea (as I understood it from the post, since I don't use Bamboo myself) is that after you have configured a job for a project and pointed it to the SCM master/trunk, you can then automatically create derived jobs which share almost every configuration with the master's job but which fetch the source from a specific branch. You can even enable "automatic branch detection" so that these derived jobs are created automatically when Bamboo detects that a new branch has been created.

 

Does anyone knows anything like that for Jenkins? I'd love to be able to use it.

 

Gustavo.

 

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Making Feature Branches Effective with Continuous Integration

Christopher Orr
In reply to this post by Gustavo Leite de Mendonça Chaves
Hi there,

It's not automated to the extent that this Bamboo feature is, but for
select projects I have two Jenkins jobs: one for master, and another job
cloned from the first, but using the "Inverse" choosing strategy in the
git plugin -- i.e. it builds all branches *except* for master.  The only
other change I make to the "feature branch" job is to discard all but
the last five builds and disable the trend graphs.

Or if you always name your feature branches like "feature/*", then you
can just enter that as your git branch, rather than using the Inverse
strategy.

So building feature branches is definitely possible today with minimal
effort, but sure -- the ability to do this completely automatically
(i.e. without a second job) would be cool.  Thanks for the info.

Regards,
Chris


On 04/27/2012 07:06 PM, Gustavo Leite de Mendonça Chaves wrote:

> This is the title of an Atlassian Blog Post
> <http://blogs.atlassian.com/2012/04/bamboofeature-branch-continuous-integration-hg-git/>
> which tells about a new feature in Bamboo 4 called Plan Branches. The
> idea (as I understood it from the post, since I don't use Bamboo myself)
> is that after you have configured a job for a project and pointed it to
> the SCM master/trunk, you can then automatically create derived jobs
> which share almost every configuration with the master's job but which
> fetch the source from a specific branch. You can even enable "automatic
> branch detection" so that these derived jobs are created automatically
> when Bamboo detects that a new branch has been created.
>
> Does anyone knows anything like that for Jenkins? I'd love to be able to
> use it.
>
> Gustavo.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Making Feature Branches Effective with Continuous Integration

Gustavo Leite de Mendonça Chaves
Hey, just to cite another Atlassian blog post about Bamboo's plan branches being used in an agressive CI fashion. I found it very interesting and would love to see it in Jenkins.


--
Gustavo.
Loading...