Package hudson.plugins.git
Class 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
repositoryBrowserFields inherited from class hudson.model.Descriptor
clazz -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanconfigure(org.kohsuke.stapler.StaplerRequest2 req, net.sf.json.JSONObject formData) static PreBuildMergeOptionscreateMergeOptions(UserMergeOptions mergeOptionsBean, List<org.eclipse.jgit.transport.RemoteConfig> remoteRepositories) static List<org.eclipse.jgit.transport.RemoteConfig>createRepositoryConfigurations(String[] urls, String[] repoNames, String[] refs) doGitRemoteNameCheck(org.kohsuke.stapler.StaplerRequest2 req) Deprecated.List<hudson.plugins.git.GitTool>Lists available toolinstallations.Global setting to be used to set GIT_COMMITTER_EMAIL and GIT_AUTHOR_EMAIL.Global setting to be used to set GIT_COMMITTER_NAME and GIT_AUTHOR_NAME.Old configuration of git executable - exposed so that we can migrate this setting to GitTool without deprecation warnings.booleanbooleanbooleanisApplicable(Job project) booleanbooleanbooleanbooleanbooleanvoidFill in the environment variables for launching gitvoidsetAddGitTagAction(boolean addGitTagAction) voidsetAllowSecondFetch(boolean allowSecondFetch) voidsetCreateAccountBasedOnEmail(boolean createAccountBasedOnEmail) voidsetDisableGitToolChooser(boolean disableGitToolChooser) voidsetGlobalConfigEmail(String globalConfigEmail) Global setting to be used to set GIT_COMMITTER_EMAIL and GIT_AUTHOR_EMAIL.voidsetGlobalConfigName(String globalConfigName) Global setting to be used to set GIT_COMMITTER_NAME and GIT_AUTHOR_NAME.voidsetHideCredentials(boolean hideCredentials) voidsetShowEntireCommitSummaryInChanges(boolean showEntireCommitSummaryInChanges) voidsetUseExistingAccountWithSameEmail(boolean useExistingAccountWithSameEmail) booleanMethods inherited from class hudson.scm.SCMDescriptor
getBrowserDescriptors, getGeneration, incrementGeneration, isApplicable, isBrowserReusable, loadMethods inherited from class hudson.model.Descriptor
addHelpFileRedirect, bindJSON, bindJSON, calcAutoCompleteSettings, calcFillSettings, configure, configure, doHelp, 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, getStaticHelpUrl, getStaticHelpUrl, getT, getViewPage, isInstance, isSubTypeOf, newInstance, newInstance, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, newInstancesFromHeteroList, newInstancesFromHeteroList, save, self, toArray, toList, toMap
-
Constructor Details
-
DescriptorImpl
public DescriptorImpl()
-
-
Method Details
-
getRequiredGlobalConfigPagePermission
- Overrides:
getRequiredGlobalConfigPagePermissionin classDescriptor<SCM>
-
isShowEntireCommitSummaryInChanges
public boolean isShowEntireCommitSummaryInChanges() -
isHideCredentials
public boolean isHideCredentials() -
setHideCredentials
public void setHideCredentials(boolean hideCredentials) -
setShowEntireCommitSummaryInChanges
public void setShowEntireCommitSummaryInChanges(boolean showEntireCommitSummaryInChanges) -
getDisplayName
- Overrides:
getDisplayNamein classDescriptor<SCM>
-
isApplicable
- Overrides:
isApplicablein classSCMDescriptor<GitSCM>
-
getExtensionDescriptors
-
showGitToolOptions
public boolean showGitToolOptions() -
getGitTools
Lists available toolinstallations.- Returns:
- list of available git tools
-
doFillGitToolItems
-
getGitExe
Deprecated.Path to git executable.- Returns:
- git executable
- See Also:
-
GitTool
-
getGlobalConfigName
Global setting to be used to set GIT_COMMITTER_NAME and GIT_AUTHOR_NAME.- Returns:
- user.name value
-
setGlobalConfigName
Global setting to be used to set GIT_COMMITTER_NAME and GIT_AUTHOR_NAME.- Parameters:
globalConfigName- user.name value to be assigned
-
getGlobalConfigEmail
Global setting to be used to set GIT_COMMITTER_EMAIL and GIT_AUTHOR_EMAIL.- Returns:
- user.email value
-
setGlobalConfigEmail
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
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.GitExceptionIOException
-
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.StaplerRequest2 req) throws IOException, jakarta.servlet.ServletException - Throws:
IOExceptionjakarta.servlet.ServletException
-
configure
public boolean configure(org.kohsuke.stapler.StaplerRequest2 req, net.sf.json.JSONObject formData) throws Descriptor.FormException - Overrides:
configurein classDescriptor<SCM>- Throws:
Descriptor.FormException
-
populateEnvironmentVariables
Fill in the environment variables for launching git- Parameters:
env- base environment variables
-