@Operation('add') class RemoteAddOp extends java.lang.Object
Adds a remote to the repository. Returns the newly created Remote. If remote with given name already exists, this command will fail.
| Type | Name and description |
|---|---|
java.util.List |
fetchRefSpecsSpecs to fetch from the remote. |
boolean |
mirrorWhether or not pushes will mirror the repository. |
java.lang.String |
nameName of the remote. |
java.util.List |
pushRefSpecsSpecs to push to the remote. |
java.lang.String |
pushUrlURL to push to. |
java.lang.String |
urlURL to fetch from. |
| Constructor and description |
|---|
RemoteAddOp
(Repository repo) |
| 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() |
Specs to fetch from the remote.
Whether or not pushes will mirror the repository.
Name of the remote.
Specs to push to the remote.
URL to push to.
URL to fetch from.
Groovy Documentation