GitHub Branch Source: Configuring branch include/exclude from Jenkinsfile

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

GitHub Branch Source: Configuring branch include/exclude from Jenkinsfile

Leandro Lucarella-2
Hi, I'm using the GitHub Branch Source plugin to setup an organization
folder. The organization is big and have different kind of projects
with different needs.

Because of this, I need to override global organization configuration
(like include/exclude branches) in a per-project basis, so I was
wondering if there is any way to control this via the Jenkinsfile.

If you know any other methods to deal with this, I'm more than
interested to hear about them.

Thanks!

--
Leandro Lucarella
Technical Development Lead
Sociomantic Labs GmbH <http://www.sociomantic.com>

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/20170711122529.35356669%40labs-064.localdomain.
For more options, visit https://groups.google.com/d/optout.

attachment0 (836 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: GitHub Branch Source: Configuring branch include/exclude from Jenkinsfile

stephenconnolly
Currently I recommend either using multiple org folders or just using multibranch projects directly.

There is some embryonic discussion about how to pull configuration as code up from just the "branch" level to the "repository" and even the "group of repositories" levels... but nothing I would hold my breath waiting on

On 11 July 2017 at 03:25, Leandro Lucarella <[hidden email]> wrote:
Hi, I'm using the GitHub Branch Source plugin to setup an organization
folder. The organization is big and have different kind of projects
with different needs.

Because of this, I need to override global organization configuration
(like include/exclude branches) in a per-project basis, so I was
wondering if there is any way to control this via the Jenkinsfile.

If you know any other methods to deal with this, I'm more than
interested to hear about them.

Thanks!

--
Leandro Lucarella
Technical Development Lead
Sociomantic Labs GmbH <http://www.sociomantic.com>

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/20170711122529.35356669%40labs-064.localdomain.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CA%2BnPnMwG_A%2B9PSZ4sw-Xjq0ggTohmioAna8PnP_H9ezVgqZ7Qg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: GitHub Branch Source: Configuring branch include/exclude from Jenkinsfile

stephenconnolly
Oh but, with the JENKINS-43507 refactoring that is landing on Monday (current ETA, my plan of tomorrow was rejected as not giving admins enough time to upgrade easily for the security fixes only) you would be able to write a custom behaviour in an extension plugin and that custom behaviour would be able to tweak the include / exclude rules as you see fit

On 11 July 2017 at 07:46, Stephen Connolly <[hidden email]> wrote:
Currently I recommend either using multiple org folders or just using multibranch projects directly.

There is some embryonic discussion about how to pull configuration as code up from just the "branch" level to the "repository" and even the "group of repositories" levels... but nothing I would hold my breath waiting on

On 11 July 2017 at 03:25, Leandro Lucarella <[hidden email]> wrote:
Hi, I'm using the GitHub Branch Source plugin to setup an organization
folder. The organization is big and have different kind of projects
with different needs.

Because of this, I need to override global organization configuration
(like include/exclude branches) in a per-project basis, so I was
wondering if there is any way to control this via the Jenkinsfile.

If you know any other methods to deal with this, I'm more than
interested to hear about them.

Thanks!

--
Leandro Lucarella
Technical Development Lead
Sociomantic Labs GmbH <http://www.sociomantic.com>

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/20170711122529.35356669%40labs-064.localdomain.
For more options, visit https://groups.google.com/d/optout.


--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CA%2BnPnMwvRyndTkUiJt5oDwUuc-OOxJ84X3j%3DvpQ2cDw8hkgMFA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: GitHub Branch Source: Configuring branch include/exclude from Jenkinsfile

Leandro Lucarella-2
In reply to this post by stephenconnolly
Mmm, not the answer I was hoping for, but fair enough.

Thanks!

On Tuesday, 11 July 2017 16:46:16 UTC+2, Stephen Connolly wrote:
Currently I recommend either using multiple org folders or just using multibranch projects directly.

There is some embryonic discussion about how to pull configuration as code up from just the "branch" level to the "repository" and even the "group of repositories" levels... but nothing I would hold my breath waiting on

On 11 July 2017 at 03:25, Leandro Lucarella <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="bdphheHtBQAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">leandro....@sociomantic.com> wrote:
Hi, I'm using the GitHub Branch Source plugin to setup an organization
folder. The organization is big and have different kind of projects
with different needs.

Because of this, I need to override global organization configuration
(like include/exclude branches) in a per-project basis, so I was
wondering if there is any way to control this via the Jenkinsfile.

If you know any other methods to deal with this, I'm more than
interested to hear about them.

Thanks!

--
Leandro Lucarella
Technical Development Lead
Sociomantic Labs GmbH <<a href="http://www.sociomantic.com" rel="nofollow" target="_blank" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fwww.sociomantic.com\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFxEULRZcDIsbYCLuvkSCT1-u804w&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fwww.sociomantic.com\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFxEULRZcDIsbYCLuvkSCT1-u804w&#39;;return true;">http://www.sociomantic.com>

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to <a href="javascript:" target="_blank" gdf-obfuscated-mailto="bdphheHtBQAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/jenkinsci-users/20170711122529.35356669%40labs-064.localdomain" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-users/20170711122529.35356669%40labs-064.localdomain&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-users/20170711122529.35356669%40labs-064.localdomain&#39;;return true;">https://groups.google.com/d/msgid/jenkinsci-users/20170711122529.35356669%40labs-064.localdomain.
For more options, visit <a href="https://groups.google.com/d/optout" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/51187518-0b1b-45a2-bd32-e960e3f16b07%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: GitHub Branch Source: Configuring branch include/exclude from Jenkinsfile

Leandro Lucarella-2
In reply to this post by stephenconnolly
BTW, I've seen in Jenkins docs, in the "Steps Reference" that comes with Jenkins, that there is a class GitHubSCMSource, I guess there is no way to use that as a step to change the configuration from the Jenkinsfile, right? It seems to have all the include/exclude conigurations there but I never understood how to use these "classes" in a Jenkinsfile.

Thanks!

On Tuesday, 11 July 2017 16:46:16 UTC+2, Stephen Connolly wrote:
Currently I recommend either using multiple org folders or just using multibranch projects directly.

There is some embryonic discussion about how to pull configuration as code up from just the "branch" level to the "repository" and even the "group of repositories" levels... but nothing I would hold my breath waiting on

On 11 July 2017 at 03:25, Leandro Lucarella <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="bdphheHtBQAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">leandro....@sociomantic.com> wrote:
Hi, I'm using the GitHub Branch Source plugin to setup an organization
folder. The organization is big and have different kind of projects
with different needs.

Because of this, I need to override global organization configuration
(like include/exclude branches) in a per-project basis, so I was
wondering if there is any way to control this via the Jenkinsfile.

If you know any other methods to deal with this, I'm more than
interested to hear about them.

Thanks!

--
Leandro Lucarella
Technical Development Lead
Sociomantic Labs GmbH <<a href="http://www.sociomantic.com" rel="nofollow" target="_blank" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fwww.sociomantic.com\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFxEULRZcDIsbYCLuvkSCT1-u804w&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fwww.sociomantic.com\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFxEULRZcDIsbYCLuvkSCT1-u804w&#39;;return true;">http://www.sociomantic.com>

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to <a href="javascript:" target="_blank" gdf-obfuscated-mailto="bdphheHtBQAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/jenkinsci-users/20170711122529.35356669%40labs-064.localdomain" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-users/20170711122529.35356669%40labs-064.localdomain&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-users/20170711122529.35356669%40labs-064.localdomain&#39;;return true;">https://groups.google.com/d/msgid/jenkinsci-users/20170711122529.35356669%40labs-064.localdomain.
For more options, visit <a href="https://groups.google.com/d/optout" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/3638df72-e07b-4b33-9d8c-01091b7ccc3c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Loading...