public class UserIdentity extends GitSCMExtension
GitSCMExtension that sets a different name and/or e-mail address for commits.| Modifier and Type | Class and Description |
|---|---|
static class |
UserIdentity.DescriptorImpl |
| Constructor and Description |
|---|
UserIdentity(String name,
String email) |
| Modifier and Type | Method and Description |
|---|---|
org.jenkinsci.plugins.gitclient.GitClient |
decorate(GitSCM scm,
org.jenkinsci.plugins.gitclient.GitClient git)
Called when
GitClient 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() |
beforeCheckout, beforeCheckout, decorateCheckoutCommand, decorateCheckoutCommand, decorateCloneCommand, decorateCloneCommand, decorateFetchCommand, decorateFetchCommand, decorateMergeCommand, decorateMergeCommand, decorateRevisionToBuild, decorateRevisionToBuild, determineSupportForJGit, enableMultipleRevisionDetection, getDescriptor, getRequiredClient, getWorkingDirectory, getWorkingDirectory, isRevExcluded, onCheckoutCompleted, onCheckoutCompleted, onClean, requiresWorkspaceForPollingpublic String getName()
public String getEmail()
public void populateEnvironmentVariables(GitSCM scm, Map<String,String> env)
populateEnvironmentVariables in class GitSCMExtensionscm - GitSCM used as referenceenv - environment variables to be addedpublic org.jenkinsci.plugins.gitclient.GitClient decorate(GitSCM scm, org.jenkinsci.plugins.gitclient.GitClient git) throws IOException, InterruptedException, hudson.plugins.git.GitException
GitClient is created to decorate its behaviour.
This allows extensions to customize the behaviour of GitClient.decorate in class GitSCMExtensionscm - GitSCM objectgit - GitClientIOException - on input or output errorInterruptedException - when interruptedhudson.plugins.git.GitException - on git errorCopyright © 2007–2021. All rights reserved.