Skip to content

(jenkins-jobs) Allow customization of the "Discover fork pull requests" trait #1212

@dduportal

Description

@dduportal

What feature do you want to see added?

Code at

def traits = node / 'sources' / 'data' / 'jenkins.branch.BranchSource' / 'source' / 'traits'
// Not discovered by Job-DSL: need to be configured as raw-XML
traits << 'org.jenkinsci.plugins.github__branch__source.ForkPullRequestDiscoveryTrait' {
strategyId(1) // 1-Merging the pull request with the current target branch revision
trust(class: 'org.jenkinsci.plugins.github_branch_source.ForkPullRequestDiscoveryTrait$TrustPermission')
}
is:

Upstream changes

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Priority

    None yet

    Target date

    None yet

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions