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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.jenkinsci.plugins.gitclient.GitClient
Called whenGitClient
is created to decorate its behaviour.boolean
getEmail()
getName()
int
hashCode()
void
populateEnvironmentVariables
(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:
populateEnvironmentVariables
in 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 whenGitClient
is created to decorate its behaviour. This allows extensions to customize the behaviour ofGitClient
.- Overrides:
decorate
in 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
-