Class GitLabSCMSourceContext

java.lang.Object
jenkins.scm.api.trait.SCMSourceContext<GitLabSCMSourceContext,GitLabSCMSourceRequest>
io.jenkins.plugins.gitlabbranchsource.GitLabSCMSourceContext

public class GitLabSCMSourceContext extends jenkins.scm.api.trait.SCMSourceContext<GitLabSCMSourceContext,GitLabSCMSourceRequest>
  • Constructor Details

    • GitLabSCMSourceContext

      public GitLabSCMSourceContext(@CheckForNull jenkins.scm.api.SCMSourceCriteria criteria, @NonNull jenkins.scm.api.SCMHeadObserver observer)
  • Method Details

    • wantBranches

      public final boolean wantBranches()
    • wantTags

      public final boolean wantTags()
    • wantMRs

      public final boolean wantMRs()
    • wantOriginMRs

      public final boolean wantOriginMRs()
    • wantForkMRs

      public final boolean wantForkMRs()
    • originMRStrategies

      @NonNull public final Set<jenkins.scm.api.mixin.ChangeRequestCheckoutStrategy> originMRStrategies()
    • forkMRStrategies

      @NonNull public final Set<jenkins.scm.api.mixin.ChangeRequestCheckoutStrategy> forkMRStrategies()
    • webhookRegistration

      @NonNull public final GitLabHookRegistration webhookRegistration()
    • systemhookRegistration

      @NonNull public final GitLabHookRegistration systemhookRegistration()
    • buildMRForksNotMirror

      public final boolean buildMRForksNotMirror()
    • notificationsDisabled

      public final boolean notificationsDisabled()
    • projectAvatarDisabled

      public final boolean projectAvatarDisabled()
    • logCommentEnabled

      public final boolean logCommentEnabled()
    • getSudoUser

      public final String getSudoUser()
    • doLogSuccess

      public boolean doLogSuccess()
    • mrCommentTriggerEnabled

      public final boolean mrCommentTriggerEnabled()
    • getOnlyTrustedMembersCanTrigger

      public final boolean getOnlyTrustedMembersCanTrigger()
    • getMarkUnstableAsSuccess

      public final boolean getMarkUnstableAsSuccess()
    • alwaysBuildMROpen

      public boolean alwaysBuildMROpen()
    • alwaysBuildMRReOpen

      public boolean alwaysBuildMRReOpen()
    • alwaysIgnoreMRApproval

      public boolean alwaysIgnoreMRApproval()
    • alwaysIgnoreMRUnApproval

      public boolean alwaysIgnoreMRUnApproval()
    • alwaysIgnoreMRApproved

      public boolean alwaysIgnoreMRApproved()
    • alwaysIgnoreMRUnApproved

      public boolean alwaysIgnoreMRUnApproved()
    • alwaysIgnoreNonCodeRelatedUpdates

      public boolean alwaysIgnoreNonCodeRelatedUpdates()
    • alwaysIgnoreMRWorkInProgress

      public boolean alwaysIgnoreMRWorkInProgress()
    • getCommentBody

      public final String getCommentBody()
    • getBuildStatusNameCustomPart

      public final String getBuildStatusNameCustomPart()
    • getBuildStatusNameOverwrite

      public boolean getBuildStatusNameOverwrite()
    • getIgnoreTypeInStatusName

      public boolean getIgnoreTypeInStatusName()
    • wantBranches

      @NonNull public GitLabSCMSourceContext wantBranches(boolean include)
    • wantTags

      @NonNull public GitLabSCMSourceContext wantTags(boolean include)
    • wantOriginMRs

      @NonNull public GitLabSCMSourceContext wantOriginMRs(boolean include)
    • wantForkMRs

      @NonNull public GitLabSCMSourceContext wantForkMRs(boolean include)
    • withOriginMRStrategies

      @NonNull public GitLabSCMSourceContext withOriginMRStrategies(Set<jenkins.scm.api.mixin.ChangeRequestCheckoutStrategy> strategies)
    • withForkMRStrategies

      @NonNull public GitLabSCMSourceContext withForkMRStrategies(Set<jenkins.scm.api.mixin.ChangeRequestCheckoutStrategy> strategies)
    • webhookRegistration

      @NonNull public final GitLabSCMSourceContext webhookRegistration(GitLabHookRegistration mode)
    • systemhookRegistration

      @NonNull public final GitLabSCMSourceContext systemhookRegistration(GitLabHookRegistration mode)
    • withBuildMRForksNotMirror

      @NonNull public final GitLabSCMSourceContext withBuildMRForksNotMirror(boolean disabled)
    • withNotificationsDisabled

      @NonNull public final GitLabSCMSourceContext withNotificationsDisabled(boolean disabled)
    • withProjectAvatarDisabled

      @NonNull public final GitLabSCMSourceContext withProjectAvatarDisabled(boolean disabled)
    • withMarkUnstableAsSuccess

      @NonNull public final GitLabSCMSourceContext withMarkUnstableAsSuccess(boolean disabled)
    • withLogCommentEnabled

      @NonNull public final GitLabSCMSourceContext withLogCommentEnabled(boolean enabled)
    • withMRCommentTriggerEnabled

      public final GitLabSCMSourceContext withMRCommentTriggerEnabled(boolean enabled)
    • withOnlyTrustedMembersCanTrigger

      public final GitLabSCMSourceContext withOnlyTrustedMembersCanTrigger(boolean enabled)
    • withSudoUser

      @NonNull public final GitLabSCMSourceContext withSudoUser(String sudoUser)
    • withLogSuccess

      @NonNull public final GitLabSCMSourceContext withLogSuccess(boolean enabled)
    • withCommentBody

      public final GitLabSCMSourceContext withCommentBody(String commentBody)
    • withBuildStatusNameCustomPart

      @NonNull public final GitLabSCMSourceContext withBuildStatusNameCustomPart(String buildStatusNameCustomPart)
    • withBuildStatusNameOverwrite

      public final GitLabSCMSourceContext withBuildStatusNameOverwrite(Boolean buildStatusNameOverwrite)
    • withIgnoreTypeInStatusName

      public final GitLabSCMSourceContext withIgnoreTypeInStatusName(Boolean ignoreTypeInStatusName)
    • newRequest

      @NonNull public GitLabSCMSourceRequest newRequest(@NonNull jenkins.scm.api.SCMSource source, @CheckForNull TaskListener listener)
      Specified by:
      newRequest in class jenkins.scm.api.trait.SCMSourceContext<GitLabSCMSourceContext,GitLabSCMSourceRequest>
    • withAlwaysBuildMROpen

      public final GitLabSCMSourceContext withAlwaysBuildMROpen(boolean enabled)
    • withAlwaysBuildMRReOpen

      public final GitLabSCMSourceContext withAlwaysBuildMRReOpen(boolean enabled)
    • withAlwaysIgnoreMRApproval

      public final GitLabSCMSourceContext withAlwaysIgnoreMRApproval(boolean enabled)
    • withAlwaysIgnoreMRUnApproval

      public final GitLabSCMSourceContext withAlwaysIgnoreMRUnApproval(boolean enabled)
    • withAlwaysIgnoreMRApproved

      public final GitLabSCMSourceContext withAlwaysIgnoreMRApproved(boolean enabled)
    • withAlwaysIgnoreMRUnApproved

      public final GitLabSCMSourceContext withAlwaysIgnoreMRUnApproved(boolean enabled)
    • withAlwaysIgnoreNonCodeRelatedUpdates

      public final GitLabSCMSourceContext withAlwaysIgnoreNonCodeRelatedUpdates(boolean enabled)
    • withAlwaysIgnoreMRWorkInProgress

      public final GitLabSCMSourceContext withAlwaysIgnoreMRWorkInProgress(boolean enabled)