How can I configure a jenkins pipelineJob via jenkins job dsl with the github pull request builder?
I have tried:
pipelineJob("Test GHPRB") {
properties {
pipelineTriggers {
triggers {
githubPullRequest {
useGitHubHooks()
orgWhitelist('orgName')
allowMembersOfWhitelistedOrgsAsAdmin()
}
}
}
}
definition { ... }
}
But it fails with an error:
No signature of method: javaposse.jobdsl.plugin.structs.DescribableListContext.githubPullRequest() is applicable for argument types: (usIntJobs$_run_closure1$_closure3$_closure5$_closure6$_closure7) values: [usIntJobs$_run_closure1$_closure3$_closure5$_closure6$_closure7@72ad1a0f]
As a bonus, how would I configure it via jenkins job dsl like so:
As NoamHelmer said in comments,
Which was very useful. For completeness, will post the job dsl configuration for above.
This is under pipelineJob.properties: