public interface GitCredentialBindings
| Modifier and Type | Method and Description |
|---|---|
default hudson.plugins.git.GitTool |
getCliGitTool(Run<?,?> run,
String gitToolName,
TaskListener listener)
Ensures that the gitTool available is of type cli git/GitTool.class
GitTool. |
org.jenkinsci.plugins.gitclient.GitClient |
getGitClientInstance(String gitExe,
FilePath repository,
EnvVars env,
TaskListener listener)
Use GitClient to perform git operations in a repository.
|
default boolean |
isCurrentNodeOSUnix(Launcher launcher)
Checks the OS environment of the node/controller
|
void |
setCredentialPairBindings(com.cloudbees.plugins.credentials.common.StandardCredentials credentials,
Map<String,String> secretValues,
Map<String,String> publicValues)
Sets secret or public pair value(s)
|
void |
setGitEnvironmentVariables(org.jenkinsci.plugins.gitclient.GitClient git,
Map<String,String> secretValues,
Map<String,String> publicValues)
Set Git specific environment variable
|
void setCredentialPairBindings(@NonNull
com.cloudbees.plugins.credentials.common.StandardCredentials credentials,
Map<String,String> secretValues,
Map<String,String> publicValues)
void setGitEnvironmentVariables(@NonNull
org.jenkinsci.plugins.gitclient.GitClient git,
Map<String,String> secretValues,
Map<String,String> publicValues)
throws IOException,
InterruptedException
git - GitClient GitClient. Cannot be null.secretValues - The valuesMap to be hidden in build logspublicValues - The valuesMap to be visible in build logsIOExceptionInterruptedExceptionorg.jenkinsci.plugins.gitclient.GitClient getGitClientInstance(String gitExe, FilePath repository, EnvVars env, TaskListener listener) throws IOException, InterruptedException
gitExe - The path String to git executable Git.using(String)repository - The path String to working directory Git.in(File)env - The environment values EnvVarslistener - The task listener.GitClientIOExceptionInterruptedExceptiondefault boolean isCurrentNodeOSUnix(@NonNull
Launcher launcher)
launcher - The launcher.Cannot be nulldefault hudson.plugins.git.GitTool getCliGitTool(Run<?,?> run, String gitToolName, TaskListener listener) throws IOException, InterruptedException
GitTool.run - The build Run. Cannot be nullgitToolName - The name of the git tool Stringlistener - The task listener. Cannot be null.GitTool or nullIOExceptionInterruptedExceptionCopyright © 2007–2021. All rights reserved.