Class GitLabConnectionProperty
- java.lang.Object
-
- hudson.model.JobProperty<Job<?,?>>
-
- com.dabsquared.gitlabjenkins.connection.GitLabConnectionProperty
-
- All Implemented Interfaces:
ExtensionPoint
,Describable<JobProperty<?>>
,ReconfigurableDescribable<JobProperty<?>>
,BuildStep
public class GitLabConnectionProperty extends JobProperty<Job<?,?>>
- Author:
- Robin Müller
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
GitLabConnectionProperty.DescriptorImpl
-
Nested classes/interfaces inherited from interface hudson.tasks.BuildStep
BuildStep.PublisherList
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Field Summary
-
Fields inherited from class hudson.model.JobProperty
owner
-
Fields inherited from interface hudson.tasks.BuildStep
BUILDERS, PUBLISHERS
-
-
Constructor Summary
Constructors Constructor Description GitLabConnectionProperty(String gitLabConnection)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description GitLabClient
getClient()
static GitLabClient
getClient(Run<?,?> build)
String
getGitLabConnection()
String
getJobCredentialId()
boolean
isUseAlternativeCredential()
void
setJobCredentialId(String jobCredentialId)
void
setUseAlternativeCredential(boolean useAlternativeCredential)
-
Methods inherited from class hudson.model.JobProperty
getDescriptor, getJobAction, getJobActions, getJobOverrides, getProjectAction, getProjectActions, getRequiredMonitorService, getSubTasks, perform, prebuild, reconfigure, setOwner
-
-
-
-
Constructor Detail
-
GitLabConnectionProperty
@DataBoundConstructor public GitLabConnectionProperty(String gitLabConnection)
-
-
Method Detail
-
getGitLabConnection
public String getGitLabConnection()
-
getJobCredentialId
public String getJobCredentialId()
-
isUseAlternativeCredential
public boolean isUseAlternativeCredential()
-
setJobCredentialId
@DataBoundSetter public void setJobCredentialId(String jobCredentialId)
-
setUseAlternativeCredential
@DataBoundSetter public void setUseAlternativeCredential(boolean useAlternativeCredential)
-
getClient
public GitLabClient getClient()
-
getClient
public static GitLabClient getClient(@NonNull Run<?,?> build)
-
-