Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
dduportal opened this issue Jul 6, 2024 · 0 comments
Labels
enhancement New feature or request jenkins-jobs

Comments

@dduportal
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request jenkins-jobs
Projects
None yet
Development

No branches or pull requests

1 participant