Package io.jenkins.plugins.gitlabrefs
Class GitLabRepositoryRefsParameterDefinition
java.lang.Object
hudson.model.ParameterDefinition
hudson.model.SimpleParameterDefinition
io.jenkins.plugins.gitlabrefs.GitLabRepositoryRefsParameterDefinition
- All Implemented Interfaces:
ExtensionPoint,Describable<ParameterDefinition>,Serializable
Lists branches and/or tags from a GitLab repository.
defaultVersion is preselected and forced into the dropdown if missing.
regex / exclude filter refs. Build page loads refs lazily via AJAX.
Pipeline Syntax / Snippet Generator: mandatory name, repoUrl;
optional refKind (TAGS|BRANCHES|ALL, default ALL)
and other options via setters (omitted when left at defaults).
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classNested classes/interfaces inherited from class hudson.model.ParameterDefinition
ParameterDefinition.ParameterDescriptorNested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Field Summary
Fields inherited from class hudson.model.ParameterDefinition
LIST -
Constructor Summary
ConstructorsConstructorDescriptionGitLabRepositoryRefsParameterDefinition(String name, String repoUrl) Pipeline Syntax / DataBound: only required fields. -
Method Summary
Modifier and TypeMethodDescriptioncreateValue(String value) createValue(org.kohsuke.stapler.StaplerRequest2 req, net.sf.json.JSONObject jo) getChoices(Item context) Loads ref choices for the given job context.intintintintintgetRegex()Effective default for Build preselection.voidsetConnectTimeoutMs(int connectTimeoutMs) voidsetCredentialsId(String credentialsId) voidsetDefaultVersion(String defaultVersion) voidsetDescription(String description) voidsetExclude(String exclude) voidsetMaxPages(int maxPages) voidsetMaxRows(int maxRows) voidsetPerPage(int perPage) voidsetReadTimeoutMs(int readTimeoutMs) voidsetRefKind(String refKind) voidvoidsetSortMode(String sortMode) Methods inherited from class hudson.model.SimpleParameterDefinition
createValue, createValueMethods inherited from class hudson.model.ParameterDefinition
all, copyWithDefaultValue, createValue, createValue, equals, getDescription, getDescriptor, getFormattedDescription, getName, getType, hashCode, isValid
-
Constructor Details
-
GitLabRepositoryRefsParameterDefinition
Pipeline Syntax / DataBound: only required fields. Optional options useDataBoundSetterso Snippet Generator omits defaults.
-
-
Method Details
-
setDescription
- Overrides:
setDescriptionin classParameterDefinition
-
setCredentialsId
-
setRefKind
-
setRegex
-
setExclude
-
setDefaultVersion
-
setPerPage
@DataBoundSetter public void setPerPage(int perPage) -
setMaxPages
@DataBoundSetter public void setMaxPages(int maxPages) -
setMaxRows
@DataBoundSetter public void setMaxRows(int maxRows) -
setSortMode
-
setConnectTimeoutMs
@DataBoundSetter public void setConnectTimeoutMs(int connectTimeoutMs) -
setReadTimeoutMs
@DataBoundSetter public void setReadTimeoutMs(int readTimeoutMs) -
getRepoUrl
-
getCredentialsId
-
getRefKind
-
getRegex
-
getExclude
-
getDefaultVersion
-
getResolvedDefault
Effective default for Build preselection. -
getPerPage
public int getPerPage() -
getMaxPages
public int getMaxPages() -
getMaxRows
public int getMaxRows() -
getSortMode
-
getConnectTimeoutMs
public int getConnectTimeoutMs() -
getReadTimeoutMs
public int getReadTimeoutMs() -
getChoices
Loads ref choices for the given job context. -
createValue
- Specified by:
createValuein classSimpleParameterDefinition
-
createValue
public ParameterValue createValue(org.kohsuke.stapler.StaplerRequest2 req, net.sf.json.JSONObject jo) - Overrides:
createValuein classParameterDefinition
-
getDefaultParameterValue
- Overrides:
getDefaultParameterValuein classParameterDefinition
-