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
-
Nested Class Summary
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Field Summary
Fields inherited from class jenkins.scm.api.SCMNavigator
PRONOUN
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
afterSave
(jenkins.scm.api.SCMNavigatorOwner owner) com.cloudbees.plugins.credentials.common.StandardCredentials
credentials
(jenkins.scm.api.SCMSourceOwner owner) static String
getProjectOwnerFromNamespace
(String projectPathWithNamespace) List<jenkins.scm.api.trait.SCMTrait<? extends jenkins.scm.api.trait.SCMTrait<?>>>
Gets the behavioral traits that are applied to this navigator and anyGitLabSCMSource
instances it discovers.protected String
id()
boolean
isGroup()
boolean
retrieveActions
(jenkins.scm.api.SCMNavigatorOwner owner, jenkins.scm.api.SCMNavigatorEvent event, TaskListener listener) void
setCredentialsId
(String credentialsId) void
setServerName
(String serverName) void
Sets the behavioral traits that are applied to this navigator and anyGitLabSCMSource
instances it discovers.void
setTraits
(jenkins.scm.api.trait.SCMTrait[] traits) Sets the behavioral traits that are applied to this navigator and anyGitLabSCMSource
instances it discovers.void
visitSources
(jenkins.scm.api.SCMSourceObserver observer) Methods inherited from class jenkins.scm.api.SCMNavigator
checkInterrupt, defaultListener, fetchActions, getCategories, getDescriptor, getId, getPronoun, isCategoryEnabled, resetId, visitSource, visitSources, visitSources
-
Field Details
-
LOGGER
-
-
Constructor Details
-
GitLabSCMNavigator
-
-
Method Details
-
getProjectOwnerFromNamespace
-
isGroup
public boolean isGroup() -
isWantSubGroupProjects
public boolean isWantSubGroupProjects() -
getCredentialsId
-
setCredentialsId
-
getServerName
-
setServerName
-
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 anyGitLabSCMSource
instances it discovers.- Overrides:
getTraits
in classjenkins.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 anyGitLabSCMSource
instances it discovers. The new traits will take affect on the next navigation through any of thevisitSources(SCMSourceObserver)
overloads orSCMNavigator.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 anyGitLabSCMSource
instances it discovers. The new traits will take affect on the next navigation through any of thevisitSources(SCMSourceObserver)
overloads orSCMNavigator.visitSource(String, SCMSourceObserver)
.- Overrides:
setTraits
in classjenkins.scm.api.SCMNavigator
- Parameters:
traits
- the new behavioral traits.
-
id
- Specified by:
id
in classjenkins.scm.api.SCMNavigator
-
visitSources
public void visitSources(@NonNull jenkins.scm.api.SCMSourceObserver observer) throws IOException, InterruptedException - Specified by:
visitSources
in classjenkins.scm.api.SCMNavigator
- Throws:
IOException
InterruptedException
-
credentials
public com.cloudbees.plugins.credentials.common.StandardCredentials credentials(jenkins.scm.api.SCMSourceOwner owner)
-