Multi-configuration jobs: Groovy Axis with Git branches

15 views
Skip to first unread message

Sverre Moe

unread,
Mar 20, 2015, 8:32:06 AM3/20/15
to jenkins...@googlegroups.com
Is it possible to define an Axis for a given list of Git branches? Perhaps with GroovyAxis.

I already have a slave axis building on 3 different Linux distributions.

So I would end up with a configuration matrix like this:
                  openSUSE    SLES64    SLES32
BranchA           x                  x              x
BranchB           x                  x              x
BranchC           x                  x              x
BranchD           x                  x              x

I can define this configuration matrix, with return [ "BranchA", "BranchB", "BranchC", "BranchD" ] on GroovyAxis.
How do I get Jenkins to check out branch BranchA on Configuration BranchA? And it should only build BranchA if there is a change on that branch.
Reply all
Reply to author
Forward
0 new messages