Class GitLabSCMSource
java.lang.Object
hudson.model.AbstractDescribableImpl<jenkins.scm.api.SCMSource>
jenkins.scm.api.SCMSource
jenkins.plugins.git.AbstractGitSCMSource
io.jenkins.plugins.gitlabbranchsource.GitLabSCMSource
- All Implemented Interfaces:
ExtensionPoint
,Describable<jenkins.scm.api.SCMSource>
public class GitLabSCMSource
extends jenkins.plugins.git.AbstractGitSCMSource
-
Nested Class Summary
Nested classes/interfaces inherited from class jenkins.plugins.git.AbstractGitSCMSource
jenkins.plugins.git.AbstractGitSCMSource.SCMRevisionImpl, jenkins.plugins.git.AbstractGitSCMSource.SpecificRevisionBuildChooser
Nested classes/interfaces inherited from class jenkins.scm.api.SCMSource
jenkins.scm.api.SCMSource.SourceByItem
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Field Summary
Fields inherited from class jenkins.plugins.git.AbstractGitSCMSource
DEFAULT_REMOTE_NAME, REF_SPEC_DEFAULT, REF_SPEC_REMOTE_NAME_PLACEHOLDER, REF_SPEC_REMOTE_NAME_PLACEHOLDER_STR
Fields inherited from class jenkins.scm.api.SCMSource
PRONOUN
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
build
(jenkins.scm.api.SCMHead head, jenkins.scm.api.SCMRevision revision) protected jenkins.scm.api.SCMProbe
createProbe
(jenkins.scm.api.SCMHead head, jenkins.scm.api.SCMRevision revision) protected org.gitlab4j.api.models.Project
protected org.gitlab4j.api.models.Project
getGitlabProject
(org.gitlab4j.api.GitLabApi gitLabApi) long
List<jenkins.scm.api.trait.SCMSourceTrait>
jenkins.scm.api.SCMRevision
getTrustedRevision
(jenkins.scm.api.SCMRevision revision, TaskListener listener) protected jenkins.scm.api.SCMRevision
retrieve
(String thingName, TaskListener listener) protected jenkins.scm.api.SCMRevision
retrieve
(jenkins.scm.api.SCMHead head, TaskListener listener) protected void
retrieve
(jenkins.scm.api.SCMSourceCriteria criteria, jenkins.scm.api.SCMHeadObserver observer, jenkins.scm.api.SCMHeadEvent<?> event, TaskListener listener) retrieveActions
(jenkins.scm.api.SCMHead head, jenkins.scm.api.SCMHeadEvent event, TaskListener listener) retrieveActions
(jenkins.scm.api.SCMRevision revision, jenkins.scm.api.SCMHeadEvent event, TaskListener listener) retrieveActions
(jenkins.scm.api.SCMSourceEvent event, TaskListener listener) retrieveRevisions
(TaskListener listener) void
setCredentialsId
(String credentialsId) void
setHttpRemote
(String httpRemote) void
setProjectId
(long projectId) void
setProjectName
(String projectName) Only used for saving project name forGitLabSCMNavigator
void
setSshRemote
(String sshRemote) void
Methods inherited from class jenkins.plugins.git.AbstractGitSCMSource
decorate, getBrowser, getCacheDir, getCacheDir, getCacheEntry, getCacheLock, getCredentials, getExcludes, getExtensions, getGitTool, getIncludes, getRefSpecs, getRemoteConfigs, getRemoteName, isCategoryEnabled, isExcluded, isFIPSCompliantTLS, newBuilder, resolveGitTool, resolveGitTool, resolveGitTool, retrieve, retrieveRevisions
Methods inherited from class jenkins.scm.api.SCMSource
build, canProbe, checkInterrupt, defaultListener, equals, fetch, fetch, fetch, fetch, fetch, fetch, fetch, fetch, fetchActions, fetchActions, fetchActions, fetchRevisions, fetchRevisions, fromSCMFileSystem, getCategories, getCriteria, getDescriptor, getId, getOwner, getPronoun, hashCode, hasId, newProbe, parentHeads, parentRevisions, retrieve, retrieve, retrieve, retrieve, setId, setOwner, toString, withId
-
Field Details
-
LOGGER
-
-
Constructor Details
-
GitLabSCMSource
-
-
Method Details
-
getServerName
-
getProjectOwner
-
getProjectPath
-
getHttpRemote
-
setHttpRemote
-
getSshRemote
-
setSshRemote
-
getProjectName
-
setProjectName
Only used for saving project name forGitLabSCMNavigator
- Parameters:
projectName
- the name of the project
-
getCredentialsId
- Specified by:
getCredentialsId
in classjenkins.plugins.git.AbstractGitSCMSource
-
setCredentialsId
-
getRemote
- Specified by:
getRemote
in classjenkins.plugins.git.AbstractGitSCMSource
-
getGitlabProject
protected org.gitlab4j.api.models.Project getGitlabProject() -
getGitlabProject
protected org.gitlab4j.api.models.Project getGitlabProject(org.gitlab4j.api.GitLabApi gitLabApi) -
getMembers
-
getProjectId
public long getProjectId() -
setProjectId
@DataBoundSetter public void setProjectId(long projectId) -
getTraits
- Overrides:
getTraits
in classjenkins.plugins.git.AbstractGitSCMSource
-
setTraits
- Overrides:
setTraits
in classjenkins.scm.api.SCMSource
-
retrieve
protected jenkins.scm.api.SCMRevision retrieve(@NonNull jenkins.scm.api.SCMHead head, @NonNull TaskListener listener) throws IOException, InterruptedException - Overrides:
retrieve
in classjenkins.plugins.git.AbstractGitSCMSource
- Throws:
IOException
InterruptedException
-
retrieve
protected void retrieve(jenkins.scm.api.SCMSourceCriteria criteria, @NonNull jenkins.scm.api.SCMHeadObserver observer, jenkins.scm.api.SCMHeadEvent<?> event, @NonNull TaskListener listener) throws IOException, InterruptedException - Overrides:
retrieve
in classjenkins.plugins.git.AbstractGitSCMSource
- Throws:
IOException
InterruptedException
-
retrieve
protected jenkins.scm.api.SCMRevision retrieve(@NonNull String thingName, @NonNull TaskListener listener) throws IOException, InterruptedException - Overrides:
retrieve
in classjenkins.scm.api.SCMSource
- Throws:
IOException
InterruptedException
-
retrieveRevisions
@NonNull protected Set<String> retrieveRevisions(@NonNull TaskListener listener) throws IOException, InterruptedException - Overrides:
retrieveRevisions
in classjenkins.scm.api.SCMSource
- Throws:
IOException
InterruptedException
-
retrieveActions
@NonNull protected List<Action> retrieveActions(jenkins.scm.api.SCMSourceEvent event, @NonNull TaskListener listener) - Overrides:
retrieveActions
in classjenkins.plugins.git.AbstractGitSCMSource
-
retrieveActions
@NonNull protected List<Action> retrieveActions(@NonNull jenkins.scm.api.SCMHead head, jenkins.scm.api.SCMHeadEvent event, @NonNull TaskListener listener) - Overrides:
retrieveActions
in classjenkins.plugins.git.AbstractGitSCMSource
-
build
@NonNull public SCM build(@NonNull jenkins.scm.api.SCMHead head, jenkins.scm.api.SCMRevision revision) - Overrides:
build
in classjenkins.plugins.git.AbstractGitSCMSource
-
getTrustedRevision
@NonNull public jenkins.scm.api.SCMRevision getTrustedRevision(@NonNull jenkins.scm.api.SCMRevision revision, @NonNull TaskListener listener) - Overrides:
getTrustedRevision
in classjenkins.scm.api.SCMSource
-
retrieveActions
@NonNull protected List<Action> retrieveActions(@NonNull jenkins.scm.api.SCMRevision revision, jenkins.scm.api.SCMHeadEvent event, @NonNull TaskListener listener) throws IOException, InterruptedException - Overrides:
retrieveActions
in classjenkins.scm.api.SCMSource
- Throws:
IOException
InterruptedException
-
createProbe
@NonNull protected jenkins.scm.api.SCMProbe createProbe(@NonNull jenkins.scm.api.SCMHead head, jenkins.scm.api.SCMRevision revision) throws IOException - Overrides:
createProbe
in classjenkins.scm.api.SCMSource
- Throws:
IOException
-
afterSave
public void afterSave()- Overrides:
afterSave
in classjenkins.scm.api.SCMSource
-
credentials
-