Perhaps try Generic Webhook Trigger Plugin:

https://github.com/jenkinsci/generic-webhook-trigger-plugin

Here is an example filtering specific branches:

https://github.com/jenkinsci/generic-webhook-trigger-plugin/blob/master/src/test/resources/org/jenkinsci/plugins/gwt/bdd/github/github-push-specific-branches.feature


Den torsdag 8 februari 2018 kl. 18:39:39 UTC+1 skrev Harlan Barnes:
>
>
> On Wednesday, November 22, 2017 at 10:50:52 AM UTC-5, Stephen Connolly 
> wrote:
>>
>>
>>
>> On 22 November 2017 at 15:49, Stephen Connolly <[email protected]> 
>> wrote:
>>
>>>
>>> On 22 November 2017 at 15:17, Harlan Barnes <[email protected]> wrote:
>>>
>>>> Hello Jenkins Friends,
>>>>
>>>> I'm having a problem getting the configuration correct for my 
>>>> multi-branch pipeline. Here are the details
>>>>
>>>> * I have a Jenkins job configured with a simple Git Branch Source with 
>>>> the following options:
>>>>   * Discover All Sources
>>>>   * Filter by name (with regular expression): (master|v\d+\.\d+) ... 
>>>> this should pick up master and v1.14, v1.15, etc.
>>>>
>>>> * I see the current expected list of branches appear for building: 
>>>> master and v1.14
>>>>
>>>> * The Jenkinsfile for both branches is the same (v1.14 is a branch of 
>>>> master) and has the following setup for triggering with a github push:
>>>>
>>>>           properties([
>>>>             pipelineTriggers([triggers: [[$class: 
>>>> "GitHubPushTrigger"]]])
>>>>           ])
>>>>
>>>
>>> Dont do that.
>>>
>>> Multibranch is opinionated, if you have set up your webhook correctly, 
>>> you are done. That config is what is causing your issue.
>>>
>>
>> To clarify, multibranch automatically detects those push events and 
>> handles them automatically.
>>
>
>  After a lot of testing on and off, I found that Multi branch will ONLY 
> detect these push events if it is used in with the Organization plugin. It 
> won't detect them if you just use the MultiBranch Pipeline standalone. We 
> don't use the Organization plugin for various reasons. I could be missing 
> something, but I've been fighting with this thing for months and gotten 
> nowhere.
>
> If anyone has any suggestions, I'm all ears. :-)
>

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/7073db89-b56f-40b7-a7cc-07b622886e55%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to