@Extension public static final class GitSCM.DescriptorImpl extends SCMDescriptor<GitSCM>
Descriptor.FormException, Descriptor.PropertyType, Descriptor.SelfrepositoryBrowserclazz| Constructor and Description |
|---|
DescriptorImpl() |
| Modifier and Type | Method and 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 git
|
void |
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() |
getBrowserDescriptors, getGeneration, incrementGeneration, isApplicable, isBrowserReusable, loadaddHelpFileRedirect, 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@NonNull public Permission getRequiredGlobalConfigPagePermission()
getRequiredGlobalConfigPagePermission in class Descriptor<SCM>public boolean isShowEntireCommitSummaryInChanges()
public boolean isHideCredentials()
public void setHideCredentials(boolean hideCredentials)
public void setShowEntireCommitSummaryInChanges(boolean showEntireCommitSummaryInChanges)
public String getDisplayName()
getDisplayName in class Descriptor<SCM>public boolean isApplicable(Job project)
isApplicable in class SCMDescriptor<GitSCM>public List<GitSCMExtensionDescriptor> getExtensionDescriptors()
public boolean showGitToolOptions()
public List<hudson.plugins.git.GitTool> getGitTools()
public ListBoxModel doFillGitToolItems()
@Deprecated public String getGitExe()
GitToolpublic String getGlobalConfigName()
public void setGlobalConfigName(String globalConfigName)
globalConfigName - user.name value to be assignedpublic String getGlobalConfigEmail()
public void setGlobalConfigEmail(String globalConfigEmail)
globalConfigEmail - user.email value to be assignedpublic boolean isCreateAccountBasedOnEmail()
public void setCreateAccountBasedOnEmail(boolean createAccountBasedOnEmail)
public boolean isUseExistingAccountWithSameEmail()
public void setUseExistingAccountWithSameEmail(boolean useExistingAccountWithSameEmail)
public boolean isAllowSecondFetch()
public void setAllowSecondFetch(boolean allowSecondFetch)
public boolean isDisableGitToolChooser()
public void setDisableGitToolChooser(boolean disableGitToolChooser)
public boolean isAddGitTagAction()
public void setAddGitTagAction(boolean addGitTagAction)
public String getOldGitExe()
public static List<org.eclipse.jgit.transport.RemoteConfig> createRepositoryConfigurations(String[] urls, String[] repoNames, String[] refs) throws IOException
IOExceptionpublic static PreBuildMergeOptions createMergeOptions(UserMergeOptions mergeOptionsBean, List<org.eclipse.jgit.transport.RemoteConfig> remoteRepositories) throws Descriptor.FormException
Descriptor.FormExceptionpublic FormValidation doGitRemoteNameCheck(org.kohsuke.stapler.StaplerRequest req) throws IOException, javax.servlet.ServletException
IOExceptionjavax.servlet.ServletExceptionpublic boolean configure(org.kohsuke.stapler.StaplerRequest req,
net.sf.json.JSONObject formData)
throws Descriptor.FormException
configure in class Descriptor<SCM>Descriptor.FormExceptionCopyright © 2007–2021. All rights reserved.