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-60874] Configuring ForkPullRequestDiscoveryTrait using Job DSL #752

Merged
merged 1 commit into from Dec 8, 2023

Commits on Dec 4, 2023

  1. [JENKINS-60874] Configuring ForkPullRequestDiscoveryTrait using Job DSL

    JENKINS-26535 describes an issue where wildcards in generics aren't
    handled well and result in the inability to configure classes that use
    wildcards in Job DSL, such as the SCMHeadAuthority class used for the
    forked PR trust policy. To work around this issue, create a new abstract
    class named GitHubForkTrustPolicy which extends the necessary
    SCMHeadAuthority superclass with its proper generics and use it in the
    constructor instead. Update all the trust policies to extend from this
    abstract class so they can be used.
    
    Fixes JENKINS-60874.
    mtughan committed Dec 4, 2023
    Copy the full SHA
    cd793ab View commit details
    Browse the repository at this point in the history