Interface GitCredentialBindings

All Known Implementing Classes:
GitUsernamePasswordBinding

public interface GitCredentialBindings
  • Method Details

    • setCredentialPairBindings

      void setCredentialPairBindings(@NonNull com.cloudbees.plugins.credentials.common.StandardCredentials credentials, Map<String,String> secretValues, Map<String,String> publicValues)
      Sets secret or public pair value(s)
      Parameters:
      credentials - The credentials StandardCredentials. Cannot be null
      secretValues - The valuesMap to be hidden in build logs
      publicValues - The valuesMap to be visible in build logs
    • setGitEnvironmentVariables

      void setGitEnvironmentVariables(@NonNull org.jenkinsci.plugins.gitclient.GitClient git, Map<String,String> secretValues, Map<String,String> publicValues) throws IOException, InterruptedException
      Set Git specific environment variable
      Parameters:
      git - GitClient GitClient. Cannot be null.
      secretValues - The valuesMap to be hidden in build logs
      publicValues - The valuesMap to be visible in build logs
      Throws:
      IOException
      InterruptedException
    • getGitClientInstance

      org.jenkinsci.plugins.gitclient.GitClient getGitClientInstance(String gitExe, FilePath repository, EnvVars env, TaskListener listener) throws IOException, InterruptedException
      Use GitClient to perform git operations in a repository. Using Git implementations JGit/JGit Apache/Cli Git
      Parameters:
      gitExe - The path String to git executable Git.using(String)
      repository - The path String to working directory Git.in(File)
      env - The environment values EnvVars
      listener - The task listener.
      Returns:
      a GitClient implementation GitClient
      Throws:
      IOException
      InterruptedException
    • isCurrentNodeOSUnix

      default boolean isCurrentNodeOSUnix(@NonNull Launcher launcher)
      Checks the OS environment of the node/controller
      Parameters:
      launcher - The launcher.Cannot be null
      Returns:
      false if current node/controller is not running in windows environment
    • getCliGitTool

      default hudson.plugins.git.GitTool getCliGitTool(Run<?,?> run, String gitToolName, TaskListener listener) throws IOException, InterruptedException
      Ensures that the gitTool available is of type cli git/GitTool.class GitTool.
      Parameters:
      run - The build Run. Cannot be null
      gitToolName - The name of the git tool String
      listener - The task listener. Cannot be null.
      Returns:
      A git tool of type GitTool.class GitTool or null
      Throws:
      IOException
      InterruptedException