public class GerritSCMSourceContext extends jenkins.plugins.git.GitSCMSourceContext<GerritSCMSourceContext,GerritSCMSourceRequest>
| Constructor and Description |
|---|
GerritSCMSourceContext(jenkins.scm.api.SCMSourceCriteria criteria,
jenkins.scm.api.SCMHeadObserver observer) |
| Modifier and Type | Method and Description |
|---|---|
String |
changesQueryFilter() |
FilterChecksTrait.ChecksQueryOperator |
checksQueryOperator()
Returns the
FilterChecksTrait.ChecksQueryOperator to use to discover pending checks. |
String |
checksQueryString()
Returns the ID or scheme to use to discover pending checks.
|
boolean |
filterForPendingChecks()
Returns true, if open changes should be filtered for pending checks
|
GerritSCMSourceRequest |
newRequest(jenkins.scm.api.SCMSource source,
hudson.model.TaskListener listener) |
void |
setChangeFilter(String changesQueryFilter) |
GerritSCMSourceContext |
wantFilterForPendingChecks(boolean wantFilter)
Defines whether changes should by filtered by pending checks.
|
GerritSCMSourceContext |
withChecksQueryOperator(FilterChecksTrait.ChecksQueryOperator queryOperator)
Defines the query operator to be used to query pending checks.
|
GerritSCMSourceContext |
withChecksQueryString(String queryString)
Defines the query string to be used to query pending checks.
|
asRefSpecs, gitTool, ignoreOnPushNotifications, refSpecs, remoteName, wantBranches, wantBranches, wantTags, wantTags, withGitTool, withIgnoreOnPushNotifications, withoutRefSpecs, withRefSpec, withRefSpecs, withRemoteNamepublic GerritSCMSourceContext(jenkins.scm.api.SCMSourceCriteria criteria,
jenkins.scm.api.SCMHeadObserver observer)
@NonNull public GerritSCMSourceContext wantFilterForPendingChecks(boolean wantFilter)
wantFilter - whether the filter should be applied.this for method chaining.@NonNull public final boolean filterForPendingChecks()
@NonNull public GerritSCMSourceContext withChecksQueryOperator(FilterChecksTrait.ChecksQueryOperator queryOperator)
queryOperator - the query operator to be used.this for method chaining.@NonNull public final FilterChecksTrait.ChecksQueryOperator checksQueryOperator()
FilterChecksTrait.ChecksQueryOperator to use to discover pending checks.FilterChecksTrait.ChecksQueryOperator to use to discover pending checks.@NonNull public GerritSCMSourceContext withChecksQueryString(String queryString)
queryString - the query string to be used.this for method chaining.@NonNull public final String checksQueryString()
@NonNull public GerritSCMSourceRequest newRequest(@NonNull jenkins.scm.api.SCMSource source, @CheckForNull hudson.model.TaskListener listener)
newRequest in class jenkins.plugins.git.GitSCMSourceContext<GerritSCMSourceContext,GerritSCMSourceRequest>public void setChangeFilter(String changesQueryFilter)
public String changesQueryFilter()
Copyright © 2018–2025. All rights reserved.