Class GitLabSCMNavigator

java.lang.Object
hudson.model.AbstractDescribableImpl<jenkins.scm.api.SCMNavigator>
jenkins.scm.api.SCMNavigator
io.jenkins.plugins.gitlabbranchsource.GitLabSCMNavigator
All Implemented Interfaces:
ExtensionPoint, Describable<jenkins.scm.api.SCMNavigator>

public class GitLabSCMNavigator extends jenkins.scm.api.SCMNavigator
  • Field Details

    • LOGGER

      public static final Logger LOGGER
  • Constructor Details

    • GitLabSCMNavigator

      @DataBoundConstructor public GitLabSCMNavigator(String projectOwner)
  • Method Details

    • getProjectOwnerFromNamespace

      public static String getProjectOwnerFromNamespace(String projectPathWithNamespace)
    • getNavigatorProjects

      public HashSet<String> getNavigatorProjects()
    • isGroup

      public boolean isGroup()
    • isWantSubGroupProjects

      public boolean isWantSubGroupProjects()
    • getCredentialsId

      public String getCredentialsId()
    • setCredentialsId

      @DataBoundSetter public void setCredentialsId(String credentialsId)
    • getServerName

      public String getServerName()
    • setServerName

      @DataBoundSetter public void setServerName(String serverName)
    • getProjectOwner

      public String getProjectOwner()
    • getTraits

      @NonNull public List<jenkins.scm.api.trait.SCMTrait<? extends jenkins.scm.api.trait.SCMTrait<?>>> getTraits()
      Gets the behavioral traits that are applied to this navigator and any GitLabSCMSource instances it discovers.
      Overrides:
      getTraits in class jenkins.scm.api.SCMNavigator
      Returns:
      the behavioral traits.
    • setTraits

      @DataBoundSetter public void setTraits(@CheckForNull jenkins.scm.api.trait.SCMTrait[] traits)
      Sets the behavioral traits that are applied to this navigator and any GitLabSCMSource instances it discovers. The new traits will take affect on the next navigation through any of the visitSources(SCMSourceObserver) overloads or SCMNavigator.visitSource(String, SCMSourceObserver).
      Parameters:
      traits - the new behavioral traits.
    • setTraits

      public void setTraits(@CheckForNull List<jenkins.scm.api.trait.SCMTrait<? extends jenkins.scm.api.trait.SCMTrait<?>>> traits)
      Sets the behavioral traits that are applied to this navigator and any GitLabSCMSource instances it discovers. The new traits will take affect on the next navigation through any of the visitSources(SCMSourceObserver) overloads or SCMNavigator.visitSource(String, SCMSourceObserver).
      Overrides:
      setTraits in class jenkins.scm.api.SCMNavigator
      Parameters:
      traits - the new behavioral traits.
    • id

      @NonNull protected String id()
      Specified by:
      id in class jenkins.scm.api.SCMNavigator
    • visitSources

      public void visitSources(@NonNull jenkins.scm.api.SCMSourceObserver observer) throws IOException, InterruptedException
      Specified by:
      visitSources in class jenkins.scm.api.SCMNavigator
      Throws:
      IOException
      InterruptedException
    • retrieveActions

      @NonNull protected List<Action> retrieveActions(@NonNull jenkins.scm.api.SCMNavigatorOwner owner, jenkins.scm.api.SCMNavigatorEvent event, @NonNull TaskListener listener) throws IOException, InterruptedException
      Overrides:
      retrieveActions in class jenkins.scm.api.SCMNavigator
      Throws:
      IOException
      InterruptedException
    • afterSave

      public void afterSave(@NonNull jenkins.scm.api.SCMNavigatorOwner owner)
      Overrides:
      afterSave in class jenkins.scm.api.SCMNavigator
    • credentials

      public com.cloudbees.plugins.credentials.common.StandardCredentials credentials(jenkins.scm.api.SCMSourceOwner owner)