The GitRepository class is the value holder object for named Git domain objects.
| Type | Name and description |
|---|---|
java.lang.String |
branch |
java.io.File |
directory |
java.lang.String |
name |
GitOptions |
options |
java.lang.String |
password |
java.lang.String |
url |
java.lang.String |
username |
| Constructor and description |
|---|
GitRepository
(java.lang.String name)Required to construct by name. |
| Type | Name and description |
|---|---|
void |
branch(java.lang.String aBranch)Short hand method to set the Git branch to use. |
void |
directory(java.io.File aDirectory)Short hand method to set the directory. |
void |
directory(java.lang.String aDirectory)Short hand method to set the directory name. |
void |
options(groovy.lang.Closure closure)Apply the closure to the GitCommandOptions. |
void |
password(java.lang.String aPassword)Short hand method to set the password. |
void |
setSingleBranch(boolean singleBranch)Setter method to set the single branch only option. |
void |
singleBranch(boolean singleBranch)Shorthand method to set the single branch only option. |
void |
url(java.lang.String aUrl)Short hand method to set the Git URL. |
void |
username(java.lang.String aUsername)Short hand method to set the username. |
| Methods inherited from class | Name |
|---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Required to construct by name.
name - the repo nameShort hand method to set the Git branch to use.
aBranch - the Git branch nameShort hand method to set the directory.
aDirectory - a local directoryShort hand method to set the directory name.
aDirectory - a local directoryApply the closure to the GitCommandOptions.
closure - the configuration closureShort hand method to set the password.
aDirectory - a local directorySetter method to set the single branch only option.
singleBranch - only clone the single branchShorthand method to set the single branch only option.
singleBranch - only clone the single branchShort hand method to set the Git URL.
aUrl - the Git URLShort hand method to set the username.
aUsername - the Git usernameGroovy Documentation