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] 
> <javascript:>> wrote:
>
>>
>> On 22 November 2017 at 15:17, Harlan Barnes <[email protected] 
>> <javascript:>> 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/0826030b-85b7-4eb1-839d-d193929d7fe6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to