|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.paylogic.jenkins.advancedscm.backends.GitBackend
public class GitBackend
| Constructor Summary | |
|---|---|
GitBackend(hudson.model.AbstractBuild build,
hudson.Launcher launcher,
hudson.model.BuildListener listener,
hudson.plugins.git.GitSCM scm)
|
|
| Method Summary | |
|---|---|
void |
clean()
Cleans workspace from artifacts. |
void |
closeBranch(String branch,
String message,
String username)
Close given branch. |
String |
getBranch()
Get the current branch name in the workspace. |
List<Branch> |
getBranches(boolean all)
Get branches from command line output, and put them in a List with Branches so it's nice to work with. |
List<String> |
getBranchNames(boolean all)
Get branches from command line output, and put them in a List so it's nice to work with. |
List<Branch> |
getLocalBranches()
Get local branches from command line output, and put them in a List with Branches so it's nice to work with. |
List<String> |
getLocalBranchNames()
Get branches from command line output, and put them in a List so it's nice to work with. |
ReleaseBranch |
getReleaseBranch(String branch)
Get release branch from given branch name. |
String |
merge(String message,
String username)
Merge possible current branch's heads. |
String |
mergeWorkspaceWith(String revision,
String updateTo,
String message,
String username)
Merge current workspace with given revision. |
String |
pull()
Executes 'pull' command |
String |
pull(String remote)
Pulls changes from remotes. |
String |
pull(String remote,
String branch)
Pulls from given repository url. |
String |
push(String... branchNames)
Executes 'push' command for given branches |
void |
stripLocal()
Strip out local commits which are not pushed yet. |
void |
update(String revision)
Updates workspace to given revision/branch. |
void |
updateClean(String revision)
Updates workspace to given revision/branch with cleaning. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.paylogic.jenkins.advancedscm.AdvancedSCMManager |
|---|
getBranchNames |
| Constructor Detail |
|---|
public GitBackend(hudson.model.AbstractBuild build,
hudson.Launcher launcher,
hudson.model.BuildListener listener,
hudson.plugins.git.GitSCM scm)
throws Exception
Exception| Method Detail |
|---|
public List<Branch> getBranches(boolean all)
throws AdvancedSCMException
getBranches in interface AdvancedSCMManagerall - : get all or only open branches
AdvancedSCMException
public List<Branch> getLocalBranches()
throws AdvancedSCMException
AdvancedSCMException
public List<String> getLocalBranchNames()
throws AdvancedSCMException
AdvancedSCMException
public String getBranch()
throws AdvancedSCMException
getBranch in interface AdvancedSCMManagerAdvancedSCMException
public void update(String revision)
throws AdvancedSCMException
update in interface AdvancedSCMManagerrevision - : String with revision, hash or branchname to update to.
AdvancedSCMException
public void updateClean(String revision)
throws AdvancedSCMException
updateClean in interface AdvancedSCMManagerrevision - : String with revision, hash of branchname to update to.
AdvancedSCMException
public void stripLocal()
throws AdvancedSCMException
stripLocal in interface AdvancedSCMManagerAdvancedSCMException
public void clean()
throws AdvancedSCMException
clean in interface AdvancedSCMManagerAdvancedSCMException
public String mergeWorkspaceWith(String revision,
String updateTo,
String message,
String username)
throws AdvancedSCMException
mergeWorkspaceWith in interface AdvancedSCMManagerrevision - : String with revision, hash or branchname to merge with.updateTo - : String with revision, hash or branchname to update working copy to before actual merge.message - : String commit messageusername - : String commit user name (with email)
AdvancedSCMException
public String merge(String message,
String username)
throws AdvancedSCMException
merge in interface AdvancedSCMManagermessage - : String commit messageusername - : String commit user name (with email)
AdvancedSCMException
public String push(String... branchNames)
throws AdvancedSCMException
push in interface AdvancedSCMManagerAdvancedSCMException
public String pull()
throws AdvancedSCMException
pull in interface AdvancedSCMManagerAdvancedSCMException
public String pull(String remote)
throws AdvancedSCMException
pull in interface AdvancedSCMManagerremote -
AdvancedSCMException
public void closeBranch(String branch,
String message,
String username)
closeBranch in interface AdvancedSCMManagerbranch: - String branch name.message - : String with message to give this commit.username - : String commit user name (with email)
public String pull(String remote,
String branch)
throws AdvancedSCMException
pull in interface AdvancedSCMManagerremote - branch -
AdvancedSCMException
public ReleaseBranch getReleaseBranch(String branch)
throws ReleaseBranchInvalidException
AdvancedSCMManager
getReleaseBranch in interface AdvancedSCMManagerbranch - : String branch name
ReleaseBranchInvalidException
public List<String> getBranchNames(boolean all)
throws AdvancedSCMException
all: - get all or only open branches
AdvancedSCMException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||