public class GitHelper extends Object
Constructor and Description |
---|
GitHelper(hudson.Launcher launcher,
hudson.EnvVars env,
PrintStream logger) |
Modifier and Type | Method and Description |
---|---|
void |
checkoutBranch(hudson.FilePath moduleDir,
String branchName) |
void |
checkoutBranchIfChange(hudson.FilePath moduleDir,
String branchName) |
void |
checkoutNewBranch(hudson.FilePath moduleDir,
String branchName) |
void |
checkoutRemoteBranch(hudson.FilePath moduleDir,
String branchName) |
void |
clone(hudson.FilePath moduleDir,
String repositoryUrl,
String branch) |
String |
getBranchName(hudson.FilePath moduleDir) |
String |
getRevision(hudson.FilePath moduleDir) |
boolean |
isGit(hudson.FilePath moduleDir) |
boolean |
isLocalBranch(hudson.FilePath moduleDir,
String branchName) |
boolean |
isRemoteBranch(hudson.FilePath moduleDir,
String branchName) |
void |
pull(hudson.FilePath moduleDir,
String branch) |
public GitHelper(hudson.Launcher launcher, hudson.EnvVars env, PrintStream logger)
public boolean isGit(hudson.FilePath moduleDir)
public void pull(hudson.FilePath moduleDir, String branch)
public void checkoutBranchIfChange(hudson.FilePath moduleDir, String branchName)
public void checkoutBranch(hudson.FilePath moduleDir, String branchName)
public void checkoutRemoteBranch(hudson.FilePath moduleDir, String branchName)
public void checkoutNewBranch(hudson.FilePath moduleDir, String branchName)
public String getBranchName(hudson.FilePath moduleDir)
public boolean isLocalBranch(hudson.FilePath moduleDir, String branchName)
public boolean isRemoteBranch(hudson.FilePath moduleDir, String branchName)
public String getRevision(hudson.FilePath moduleDir)
Copyright © 2016–2019. All rights reserved.