com.dabsquared.gitlabjenkins
Class GitLabPushTrigger.DescriptorImpl
java.lang.Object
hudson.model.Descriptor<hudson.triggers.Trigger<?>>
hudson.triggers.TriggerDescriptor
com.dabsquared.gitlabjenkins.GitLabPushTrigger.DescriptorImpl
- All Implemented Interfaces:
- hudson.model.Saveable
- Enclosing class:
- GitLabPushTrigger
@Extension
public static class GitLabPushTrigger.DescriptorImpl
- extends hudson.triggers.TriggerDescriptor
| Nested classes/interfaces inherited from class hudson.model.Descriptor |
hudson.model.Descriptor.FormException, hudson.model.Descriptor.PropertyType, hudson.model.Descriptor.Self |
| Fields inherited from class hudson.model.Descriptor |
clazz |
| Fields inherited from interface hudson.model.Saveable |
NOOP |
|
Method Summary |
boolean |
configure(org.kohsuke.stapler.StaplerRequest req,
net.sf.json.JSONObject formData)
|
hudson.model.AutoCompletionCandidates |
doAutoCompleteExcludeBranchesSpec(hudson.model.Job<?,?> job,
String value)
|
hudson.model.AutoCompletionCandidates |
doAutoCompleteIncludeBranchesSpec(hudson.model.Job<?,?> job,
String value)
|
hudson.util.FormValidation |
doCheckExcludeBranchesSpec(hudson.model.Job<?,?> project,
String value)
|
hudson.util.FormValidation |
doCheckGitlabApiToken(String value)
|
hudson.util.FormValidation |
doCheckGitlabHostUrl(String value)
|
hudson.util.FormValidation |
doCheckIncludeBranchesSpec(hudson.model.Job<?,?> project,
String value)
|
hudson.util.ListBoxModel |
doFillTriggerOpenMergeRequestOnPushItems(String triggerOpenMergeRequestOnPush)
|
hudson.util.FormValidation |
doTestConnection(String hostUrl,
String token,
boolean ignoreCertificateErrors)
|
static GitLabPushTrigger.DescriptorImpl |
get()
|
String |
getDisplayName()
|
GitLab |
getGitlab()
|
String |
getGitlabApiToken()
|
String |
getGitlabHostUrl()
|
boolean |
getIgnoreCertificateErrors()
|
protected String |
getSourceRepoNameDefault(hudson.model.Job job)
Get the Name of the first declared repository in the project configuration. |
protected org.eclipse.jgit.transport.URIish |
getSourceRepoURLDefault(hudson.model.Job job)
Get the URL of the first declared repository in the project configuration. |
boolean |
isApplicable(hudson.model.Item item)
|
| Methods inherited from class hudson.model.Descriptor |
addHelpFileRedirect, calcAutoCompleteSettings, calcFillSettings, configure, doHelp, find, find, getCheckMethod, getCheckUrl, getConfigFile, getConfigPage, getCurrentDescriptorByNameUrl, getDescriptorFullUrl, getDescriptorUrl, getGlobalConfigPage, getGlobalPropertyType, getHelpFile, getHelpFile, getHelpFile, getId, getJsonSafeClassName, getKlass, getPlugin, getPossibleViewNames, getPropertyType, getPropertyType, getPropertyTypeOrDie, getT, getViewPage, isInstance, isSubTypeOf, load, newInstance, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, save, self, toArray, toList, toMap |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GitLabPushTrigger.DescriptorImpl
public GitLabPushTrigger.DescriptorImpl()
isApplicable
public boolean isApplicable(hudson.model.Item item)
- Specified by:
isApplicable in class hudson.triggers.TriggerDescriptor
getDisplayName
public String getDisplayName()
- Specified by:
getDisplayName in class hudson.model.Descriptor<hudson.triggers.Trigger<?>>
configure
public boolean configure(org.kohsuke.stapler.StaplerRequest req,
net.sf.json.JSONObject formData)
throws hudson.model.Descriptor.FormException
- Overrides:
configure in class hudson.model.Descriptor<hudson.triggers.Trigger<?>>
- Throws:
hudson.model.Descriptor.FormException
doFillTriggerOpenMergeRequestOnPushItems
public hudson.util.ListBoxModel doFillTriggerOpenMergeRequestOnPushItems(@QueryParameter
String triggerOpenMergeRequestOnPush)
doAutoCompleteIncludeBranchesSpec
public hudson.model.AutoCompletionCandidates doAutoCompleteIncludeBranchesSpec(@AncestorInPath
hudson.model.Job<?,?> job,
@QueryParameter
String value)
doAutoCompleteExcludeBranchesSpec
public hudson.model.AutoCompletionCandidates doAutoCompleteExcludeBranchesSpec(@AncestorInPath
hudson.model.Job<?,?> job,
@QueryParameter
String value)
doCheckIncludeBranchesSpec
public hudson.util.FormValidation doCheckIncludeBranchesSpec(@AncestorInPath
hudson.model.Job<?,?> project,
@QueryParameter
String value)
doCheckExcludeBranchesSpec
public hudson.util.FormValidation doCheckExcludeBranchesSpec(@AncestorInPath
hudson.model.Job<?,?> project,
@QueryParameter
String value)
getSourceRepoURLDefault
protected org.eclipse.jgit.transport.URIish getSourceRepoURLDefault(hudson.model.Job job)
- Get the URL of the first declared repository in the project configuration.
Use this as default source repository url.
- Returns:
- URIish the default value of the source repository url
- Throws:
IllegalStateException - Project does not use git scm.
getSourceRepoNameDefault
protected String getSourceRepoNameDefault(hudson.model.Job job)
- Get the Name of the first declared repository in the project configuration.
Use this as default source repository Name.
- Returns:
- String with the default name of the source repository
doCheckGitlabHostUrl
public hudson.util.FormValidation doCheckGitlabHostUrl(@QueryParameter
String value)
doCheckGitlabApiToken
public hudson.util.FormValidation doCheckGitlabApiToken(@QueryParameter
String value)
doTestConnection
public hudson.util.FormValidation doTestConnection(@QueryParameter(value="gitlabHostUrl")
String hostUrl,
@QueryParameter(value="gitlabApiToken")
String token,
@QueryParameter(value="ignoreCertificateErrors")
boolean ignoreCertificateErrors)
throws IOException
- Throws:
IOException
getGitlab
public GitLab getGitlab()
getGitlabApiToken
public String getGitlabApiToken()
getGitlabHostUrl
public String getGitlabHostUrl()
getIgnoreCertificateErrors
public boolean getIgnoreCertificateErrors()
get
public static GitLabPushTrigger.DescriptorImpl get()
Copyright © 2004-2015. All Rights Reserved.