jenkins.scm.api.trait.SCMHeadAuthorityDescriptor Java Examples

The following examples show how to use jenkins.scm.api.trait.SCMHeadAuthorityDescriptor. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: ForkMergeRequestDiscoveryTrait.java    From gitlab-branch-source-plugin with MIT License 5 votes vote down vote up
/**
 * Returns the list of appropriate {@link SCMHeadAuthorityDescriptor} instances.
 *
 * @return the list of appropriate {@link SCMHeadAuthorityDescriptor} instances.
 */
@NonNull
@SuppressWarnings("unused") // stapler
public List<SCMHeadAuthorityDescriptor> getTrustDescriptors() {
    return SCMHeadAuthority._for(
        GitLabSCMSourceRequest.class,
        MergeRequestSCMHead.class,
        MergeRequestSCMRevision.class,
        SCMHeadOrigin.Fork.class
    );
}
 
Example #2
Source File: ForkPullRequestDiscoveryTrait.java    From gitea-plugin with MIT License 5 votes vote down vote up
/**
 * Returns the list of appropriate {@link SCMHeadAuthorityDescriptor} instances.
 *
 * @return the list of appropriate {@link SCMHeadAuthorityDescriptor} instances.
 */
@NonNull
@SuppressWarnings("unused") // stapler
public List<SCMHeadAuthorityDescriptor> getTrustDescriptors() {
    return SCMHeadAuthority._for(
            GiteaSCMSourceRequest.class,
            PullRequestSCMHead.class,
            PullRequestSCMRevision.class,
            SCMHeadOrigin.Fork.class
    );
}
 
Example #3
Source File: ForkPullRequestDiscoveryTrait.java    From github-branch-source-plugin with MIT License 5 votes vote down vote up
/**
 * Returns the list of appropriate {@link SCMHeadAuthorityDescriptor} instances.
 *
 * @return the list of appropriate {@link SCMHeadAuthorityDescriptor} instances.
 */
@NonNull
@SuppressWarnings("unused") // stapler
public List<SCMHeadAuthorityDescriptor> getTrustDescriptors() {
    return SCMHeadAuthority._for(
            GitHubSCMSourceRequest.class,
            PullRequestSCMHead.class,
            PullRequestSCMRevision.class,
            SCMHeadOrigin.Fork.class
    );
}