Class UserIdentity
java.lang.Object
hudson.model.AbstractDescribableImpl<GitSCMExtension>
hudson.plugins.git.extensions.GitSCMExtension
hudson.plugins.git.extensions.impl.UserIdentity
- All Implemented Interfaces:
Describable<GitSCMExtension>
GitSCMExtension that sets a different name and/or e-mail address for commits.- Author:
- Andrew Bayer, Kohsuke Kawaguchi
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.jenkinsci.plugins.gitclient.GitClientCalled whenGitClientis created to decorate its behaviour.booleangetEmail()getName()inthashCode()voidpopulateEnvironmentVariables(GitSCM scm, Map<String, String> env) Contribute additional environment variables for the Git invocation.toString()Methods inherited from class hudson.plugins.git.extensions.GitSCMExtension
beforeCheckout, beforeCheckout, decorateCheckoutCommand, decorateCheckoutCommand, decorateCloneCommand, decorateCloneCommand, decorateFetchCommand, decorateFetchCommand, decorateMergeCommand, decorateMergeCommand, decorateRevisionToBuild, decorateRevisionToBuild, determineSupportForJGit, enableMultipleRevisionDetection, getDescriptor, getRequiredClient, getWorkingDirectory, getWorkingDirectory, isRevExcluded, onCheckoutCompleted, onCheckoutCompleted, onClean, requiresWorkspaceForPolling
-
Constructor Details
-
UserIdentity
-
-
Method Details
-
getName
-
getEmail
-
populateEnvironmentVariables
Contribute additional environment variables for the Git invocation.- Overrides:
populateEnvironmentVariablesin classGitSCMExtension- Parameters:
scm- GitSCM used as referenceenv- environment variables to be added
-
equals
-
hashCode
public int hashCode() -
toString
-
decorate
public org.jenkinsci.plugins.gitclient.GitClient decorate(GitSCM scm, org.jenkinsci.plugins.gitclient.GitClient git) throws IOException, InterruptedException, hudson.plugins.git.GitException Called whenGitClientis created to decorate its behaviour. This allows extensions to customize the behaviour ofGitClient.- Overrides:
decoratein classGitSCMExtension- Parameters:
scm- GitSCM objectgit- GitClient- Returns:
- GitClient to decorate
- Throws:
IOException- on input or output errorInterruptedException- when interruptedhudson.plugins.git.GitException- on git error
-