Class BitbucketSCM.DescriptorImpl
- java.lang.Object
-
- hudson.model.Descriptor<SCM>
-
- hudson.scm.SCMDescriptor<BitbucketSCM>
-
- com.atlassian.bitbucket.jenkins.internal.scm.BitbucketSCM.DescriptorImpl
-
- All Implemented Interfaces:
BitbucketScmFormFill
,BitbucketScmFormValidation
,Saveable
,OnMaster
- Enclosing class:
- BitbucketSCM
@Symbol("BbS") @Extension public static class BitbucketSCM.DescriptorImpl extends SCMDescriptor<BitbucketSCM> implements BitbucketScmFormValidation, BitbucketScmFormFill
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class hudson.model.Descriptor
Descriptor.FormException, Descriptor.PropertyType, Descriptor.Self
-
-
Field Summary
-
Fields inherited from class hudson.scm.SCMDescriptor
repositoryBrowser
-
Fields inherited from class hudson.model.Descriptor
clazz
-
-
Constructor Summary
Constructors Constructor Description DescriptorImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FormValidation
doCheckCredentialsId(Item context, String credentialsId)
FormValidation
doCheckProjectName(Item context, String serverId, String credentialsId, String projectName)
FormValidation
doCheckRepositoryName(Item context, String serverId, String credentialsId, String projectName, String repositoryName)
FormValidation
doCheckServerId(Item context, String serverId)
FormValidation
doCheckSshCredentialsId(Item context, String sshCredentialsId)
ListBoxModel
doFillCredentialsIdItems(Item context, String baseUrl, String credentialsId)
ListBoxModel
doFillGitToolItems()
ListBoxModel
doFillMirrorNameItems(Item context, String serverId, String credentialsId, String projectName, String repositoryName, String mirrorName)
org.kohsuke.stapler.HttpResponse
doFillProjectNameItems(Item context, String serverId, String credentialsId, String projectName)
org.kohsuke.stapler.HttpResponse
doFillRepositoryNameItems(Item context, String serverId, String credentialsId, String projectName, String repositoryName)
ListBoxModel
doFillServerIdItems(Item context, String serverId)
ListBoxModel
doFillSshCredentialsIdItems(Item context, String baseUrl, String sshCredentialsId)
FormValidation
doTestConnection(Item context, String serverId, String credentialsId, String projectName, String repositoryName, String mirrorName)
String
getDisplayName()
List<hudson.plugins.git.extensions.GitSCMExtensionDescriptor>
getExtensionDescriptors()
List<hudson.plugins.git.GitTool>
getGitTools()
boolean
getShowGitToolOptions()
void
injectJenkinsToBitbucketCredentials()
boolean
isApplicable(Job project)
SCM
newInstance(org.kohsuke.stapler.StaplerRequest req, net.sf.json.JSONObject formData)
void
setJenkinsToBitbucketCredentials(JenkinsToBitbucketCredentials jenkinsToBitbucketCredentials)
-
Methods inherited from class hudson.scm.SCMDescriptor
getBrowserDescriptors, getGeneration, incrementGeneration, isApplicable, isBrowserReusable, load
-
Methods inherited from class hudson.model.Descriptor
addHelpFileRedirect, bindJSON, calcAutoCompleteSettings, calcFillSettings, configure, configure, doHelp, find, find, findByDescribableClassName, findById, getCategory, getCheckMethod, getCheckUrl, getConfigFile, getConfigPage, getCurrentDescriptorByNameUrl, getDescriptorFullUrl, getDescriptorUrl, getGlobalConfigPage, getGlobalPropertyType, getHelpFile, getHelpFile, getHelpFile, getId, getJsonSafeClassName, getKlass, getPlugin, getPossibleViewNames, getPropertyType, getPropertyType, getPropertyTypeOrDie, getRequiredGlobalConfigPagePermission, getT, getViewPage, isInstance, isSubTypeOf, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, save, self, toArray, toList, toMap
-
-
-
-
Method Detail
-
doCheckCredentialsId
@POST public FormValidation doCheckCredentialsId(@AncestorInPath Item context, @QueryParameter String credentialsId)
- Specified by:
doCheckCredentialsId
in interfaceBitbucketScmFormValidation
-
doCheckSshCredentialsId
@POST public FormValidation doCheckSshCredentialsId(@AncestorInPath Item context, @QueryParameter String sshCredentialsId)
- Specified by:
doCheckSshCredentialsId
in interfaceBitbucketScmFormValidation
-
doCheckProjectName
@POST public FormValidation doCheckProjectName(@AncestorInPath Item context, @QueryParameter String serverId, @QueryParameter String credentialsId, @QueryParameter String projectName)
- Specified by:
doCheckProjectName
in interfaceBitbucketScmFormValidation
-
doCheckRepositoryName
@POST public FormValidation doCheckRepositoryName(@AncestorInPath Item context, @QueryParameter String serverId, @QueryParameter String credentialsId, @QueryParameter String projectName, @QueryParameter String repositoryName)
- Specified by:
doCheckRepositoryName
in interfaceBitbucketScmFormValidation
-
doCheckServerId
@POST public FormValidation doCheckServerId(@AncestorInPath Item context, @QueryParameter String serverId)
- Specified by:
doCheckServerId
in interfaceBitbucketScmFormValidation
-
doFillCredentialsIdItems
@POST public ListBoxModel doFillCredentialsIdItems(@AncestorInPath Item context, @QueryParameter String baseUrl, @QueryParameter String credentialsId)
- Specified by:
doFillCredentialsIdItems
in interfaceBitbucketScmFormFill
-
doFillSshCredentialsIdItems
@POST public ListBoxModel doFillSshCredentialsIdItems(@AncestorInPath Item context, @QueryParameter String baseUrl, @QueryParameter String sshCredentialsId)
- Specified by:
doFillSshCredentialsIdItems
in interfaceBitbucketScmFormFill
-
doTestConnection
@POST public FormValidation doTestConnection(@AncestorInPath Item context, @QueryParameter String serverId, @QueryParameter String credentialsId, @QueryParameter String projectName, @QueryParameter String repositoryName, @QueryParameter String mirrorName)
- Specified by:
doTestConnection
in interfaceBitbucketScmFormValidation
-
doFillGitToolItems
@POST public ListBoxModel doFillGitToolItems()
-
doFillProjectNameItems
@POST public org.kohsuke.stapler.HttpResponse doFillProjectNameItems(@AncestorInPath Item context, @QueryParameter String serverId, @QueryParameter String credentialsId, @QueryParameter String projectName)
- Specified by:
doFillProjectNameItems
in interfaceBitbucketScmFormFill
-
doFillRepositoryNameItems
@POST public org.kohsuke.stapler.HttpResponse doFillRepositoryNameItems(@AncestorInPath Item context, @QueryParameter String serverId, @QueryParameter String credentialsId, @QueryParameter String projectName, @QueryParameter String repositoryName)
- Specified by:
doFillRepositoryNameItems
in interfaceBitbucketScmFormFill
-
doFillServerIdItems
@POST public ListBoxModel doFillServerIdItems(@AncestorInPath Item context, @QueryParameter String serverId)
- Specified by:
doFillServerIdItems
in interfaceBitbucketScmFormFill
-
doFillMirrorNameItems
@POST public ListBoxModel doFillMirrorNameItems(@AncestorInPath Item context, @QueryParameter String serverId, @QueryParameter String credentialsId, @QueryParameter String projectName, @QueryParameter String repositoryName, @QueryParameter String mirrorName)
- Specified by:
doFillMirrorNameItems
in interfaceBitbucketScmFormFill
-
getDisplayName
public String getDisplayName()
- Overrides:
getDisplayName
in classDescriptor<SCM>
-
getExtensionDescriptors
public List<hudson.plugins.git.extensions.GitSCMExtensionDescriptor> getExtensionDescriptors()
- Specified by:
getExtensionDescriptors
in interfaceBitbucketScmFormFill
-
getGitTools
public List<hudson.plugins.git.GitTool> getGitTools()
- Specified by:
getGitTools
in interfaceBitbucketScmFormFill
-
getShowGitToolOptions
public boolean getShowGitToolOptions()
- Specified by:
getShowGitToolOptions
in interfaceBitbucketScmFormFill
-
isApplicable
public boolean isApplicable(Job project)
- Overrides:
isApplicable
in classSCMDescriptor<BitbucketSCM>
-
setJenkinsToBitbucketCredentials
@Inject public void setJenkinsToBitbucketCredentials(JenkinsToBitbucketCredentials jenkinsToBitbucketCredentials)
-
injectJenkinsToBitbucketCredentials
public void injectJenkinsToBitbucketCredentials()
-
newInstance
public SCM newInstance(@Nullable org.kohsuke.stapler.StaplerRequest req, net.sf.json.JSONObject formData) throws Descriptor.FormException
- Overrides:
newInstance
in classDescriptor<SCM>
- Throws:
Descriptor.FormException
-
-