Using githubPush trigger for multibranchPipelineJob breaks seed job

37 views
Skip to first unread message

Ben Denney

unread,
Mar 29, 2023, 5:25:33 PM3/29/23
to job-dsl-plugin
I'm trying to get a multibranchPipelineJob to trigger using the following groovy snippet (as shown in the job-dsl API):

'''
private void generateMultibranch(config) {
     multibranchPipelineJob ("${config.name}") {
           description ("Multibrach for ${config.name}") 

           triggers {
                 githubPush ()
           }

'''

If I try the above it breaks the seed job complaining about githubPush...what am I doing wrong? 

Ben Denney

unread,
Mar 29, 2023, 5:29:06 PM3/29/23
to job-dsl-plugin

I should add that I'm using Jenkins 2.300, job-dsl plugin 1.78.1, and GitHub plugin 1.34.1.

Ben Denney

unread,
Mar 29, 2023, 6:00:24 PM3/29/23
to job-dsl-plugin
And Pipeline: Multibranch plugin 2.26
Reply all
Reply to author
Forward
0 new messages