Class GitSCM.DescriptorImpl

    • Constructor Detail

      • DescriptorImpl

        public DescriptorImpl()
    • Method Detail

      • isShowEntireCommitSummaryInChanges

        public boolean isShowEntireCommitSummaryInChanges()
      • isHideCredentials

        public boolean isHideCredentials()
      • setHideCredentials

        public void setHideCredentials​(boolean hideCredentials)
      • setShowEntireCommitSummaryInChanges

        public void setShowEntireCommitSummaryInChanges​(boolean showEntireCommitSummaryInChanges)
      • 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
      • doGitRemoteNameCheck

        public FormValidation doGitRemoteNameCheck​(org.kohsuke.stapler.StaplerRequest req)
                                            throws IOException,
                                                   javax.servlet.ServletException
        Throws:
        IOException
        javax.servlet.ServletException
      • populateEnvironmentVariables

        public void populateEnvironmentVariables​(Map<String,​String> env)
        Fill in the environment variables for launching git
        Parameters:
        env - base environment variables