Package hudson.plugins.git
Class GitSCM.DescriptorImpl
- java.lang.Object
-
- hudson.model.Descriptor<SCM>
-
- hudson.scm.SCMDescriptor<GitSCM>
-
- hudson.plugins.git.GitSCM.DescriptorImpl
-
- Enclosing class:
- GitSCM
@Extension @Symbol({"scmGit","gitSCM"}) public static final class GitSCM.DescriptorImpl extends SCMDescriptor<GitSCM>
-
-
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 Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description boolean
configure(org.kohsuke.stapler.StaplerRequest req, net.sf.json.JSONObject formData)
static PreBuildMergeOptions
createMergeOptions(UserMergeOptions mergeOptionsBean, List<org.eclipse.jgit.transport.RemoteConfig> remoteRepositories)
static List<org.eclipse.jgit.transport.RemoteConfig>
createRepositoryConfigurations(String[] urls, String[] repoNames, String[] refs)
ListBoxModel
doFillGitToolItems()
FormValidation
doGitRemoteNameCheck(org.kohsuke.stapler.StaplerRequest req)
String
getDisplayName()
List<GitSCMExtensionDescriptor>
getExtensionDescriptors()
String
getGitExe()
Deprecated.List<hudson.plugins.git.GitTool>
getGitTools()
Lists available toolinstallations.String
getGlobalConfigEmail()
Global setting to be used to set GIT_COMMITTER_EMAIL and GIT_AUTHOR_EMAIL.String
getGlobalConfigName()
Global setting to be used to set GIT_COMMITTER_NAME and GIT_AUTHOR_NAME.String
getOldGitExe()
Old configuration of git executable - exposed so that we can migrate this setting to GitTool without deprecation warnings.Permission
getRequiredGlobalConfigPagePermission()
boolean
isAddGitTagAction()
boolean
isAllowSecondFetch()
boolean
isApplicable(Job project)
boolean
isCreateAccountBasedOnEmail()
boolean
isDisableGitToolChooser()
boolean
isHideCredentials()
boolean
isShowEntireCommitSummaryInChanges()
boolean
isUseExistingAccountWithSameEmail()
void
populateEnvironmentVariables(Map<String,String> env)
Fill in the environment variables for launching gitvoid
setAddGitTagAction(boolean addGitTagAction)
void
setAllowSecondFetch(boolean allowSecondFetch)
void
setCreateAccountBasedOnEmail(boolean createAccountBasedOnEmail)
void
setDisableGitToolChooser(boolean disableGitToolChooser)
void
setGlobalConfigEmail(String globalConfigEmail)
Global setting to be used to set GIT_COMMITTER_EMAIL and GIT_AUTHOR_EMAIL.void
setGlobalConfigName(String globalConfigName)
Global setting to be used to set GIT_COMMITTER_NAME and GIT_AUTHOR_NAME.void
setHideCredentials(boolean hideCredentials)
void
setShowEntireCommitSummaryInChanges(boolean showEntireCommitSummaryInChanges)
void
setUseExistingAccountWithSameEmail(boolean useExistingAccountWithSameEmail)
boolean
showGitToolOptions()
-
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, 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, getT, getViewPage, isInstance, isSubTypeOf, newInstance, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, save, self, toArray, toList, toMap
-
-
-
-
Method Detail
-
getRequiredGlobalConfigPagePermission
@NonNull public Permission getRequiredGlobalConfigPagePermission()
- Overrides:
getRequiredGlobalConfigPagePermission
in classDescriptor<SCM>
-
isShowEntireCommitSummaryInChanges
public boolean isShowEntireCommitSummaryInChanges()
-
isHideCredentials
public boolean isHideCredentials()
-
setHideCredentials
public void setHideCredentials(boolean hideCredentials)
-
setShowEntireCommitSummaryInChanges
public void setShowEntireCommitSummaryInChanges(boolean showEntireCommitSummaryInChanges)
-
getDisplayName
public String getDisplayName()
- Overrides:
getDisplayName
in classDescriptor<SCM>
-
isApplicable
public boolean isApplicable(Job project)
- Overrides:
isApplicable
in classSCMDescriptor<GitSCM>
-
getExtensionDescriptors
public List<GitSCMExtensionDescriptor> getExtensionDescriptors()
-
showGitToolOptions
public boolean showGitToolOptions()
-
getGitTools
public List<hudson.plugins.git.GitTool> getGitTools()
Lists available toolinstallations.- Returns:
- list of available git tools
-
doFillGitToolItems
public ListBoxModel doFillGitToolItems()
-
getGitExe
@Deprecated public String getGitExe()
Deprecated.Path to git executable.- Returns:
- git executable
- See Also:
GitTool
-
getGlobalConfigName
public String getGlobalConfigName()
Global setting to be used to set GIT_COMMITTER_NAME and GIT_AUTHOR_NAME.- Returns:
- user.name value
-
setGlobalConfigName
public void setGlobalConfigName(String globalConfigName)
Global setting to be used to set GIT_COMMITTER_NAME and GIT_AUTHOR_NAME.- Parameters:
globalConfigName
- user.name value to be assigned
-
getGlobalConfigEmail
public String getGlobalConfigEmail()
Global setting to be used to set GIT_COMMITTER_EMAIL and GIT_AUTHOR_EMAIL.- Returns:
- user.email value
-
setGlobalConfigEmail
public void setGlobalConfigEmail(String globalConfigEmail)
Global setting to be used to set GIT_COMMITTER_EMAIL and GIT_AUTHOR_EMAIL.- Parameters:
globalConfigEmail
- user.email value to be assigned
-
isCreateAccountBasedOnEmail
public boolean isCreateAccountBasedOnEmail()
-
setCreateAccountBasedOnEmail
public void setCreateAccountBasedOnEmail(boolean createAccountBasedOnEmail)
-
isUseExistingAccountWithSameEmail
public boolean isUseExistingAccountWithSameEmail()
-
setUseExistingAccountWithSameEmail
public void setUseExistingAccountWithSameEmail(boolean useExistingAccountWithSameEmail)
-
isAllowSecondFetch
public boolean isAllowSecondFetch()
-
setAllowSecondFetch
public void setAllowSecondFetch(boolean allowSecondFetch)
-
isDisableGitToolChooser
public boolean isDisableGitToolChooser()
-
setDisableGitToolChooser
public void setDisableGitToolChooser(boolean disableGitToolChooser)
-
isAddGitTagAction
public boolean isAddGitTagAction()
-
setAddGitTagAction
public void setAddGitTagAction(boolean addGitTagAction)
-
getOldGitExe
public String getOldGitExe()
Old configuration of git executable - exposed so that we can migrate this setting to GitTool without deprecation warnings.- Returns:
- git executable
-
createRepositoryConfigurations
public static List<org.eclipse.jgit.transport.RemoteConfig> createRepositoryConfigurations(String[] urls, String[] repoNames, String[] refs) throws hudson.plugins.git.GitException, IOException
- Throws:
hudson.plugins.git.GitException
IOException
-
createMergeOptions
public static PreBuildMergeOptions createMergeOptions(UserMergeOptions mergeOptionsBean, List<org.eclipse.jgit.transport.RemoteConfig> remoteRepositories) throws Descriptor.FormException
- Throws:
Descriptor.FormException
-
doGitRemoteNameCheck
public FormValidation doGitRemoteNameCheck(org.kohsuke.stapler.StaplerRequest req) throws IOException, javax.servlet.ServletException
- Throws:
IOException
javax.servlet.ServletException
-
configure
public boolean configure(org.kohsuke.stapler.StaplerRequest req, net.sf.json.JSONObject formData) throws Descriptor.FormException
- Overrides:
configure
in classDescriptor<SCM>
- Throws:
Descriptor.FormException
-
-