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>
public class UserIdentity extends GitSCMExtension
GitSCMExtension
that sets a different name and/or e-mail address for commits.- Author:
- Andrew Bayer, Kohsuke Kawaguchi
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
UserIdentity.DescriptorImpl
-
Constructor Summary
Constructors Constructor Description UserIdentity(String name, String email)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.jenkinsci.plugins.gitclient.GitClient
decorate(GitSCM scm, org.jenkinsci.plugins.gitclient.GitClient git)
Called whenGitClient
is created to decorate its behaviour.boolean
equals(Object o)
String
getEmail()
String
getName()
int
hashCode()
void
populateEnvironmentVariables(GitSCM scm, Map<String,String> env)
Contribute additional environment variables for the Git invocation.String
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
-
-
-
-
Method Detail
-
getName
public String getName()
-
getEmail
public String getEmail()
-
populateEnvironmentVariables
public void populateEnvironmentVariables(GitSCM scm, Map<String,String> env)
Contribute additional environment variables for the Git invocation.- Overrides:
populateEnvironmentVariables
in classGitSCMExtension
- Parameters:
scm
- GitSCM used as referenceenv
- environment variables to be added
-
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
-
-