Package org.jenkinsci.plugins.gitclient
Interface FetchCommand
- All Superinterfaces:
GitCommand
FetchCommand interface.
-
Method Summary
Methods inherited from interface org.jenkinsci.plugins.gitclient.GitCommand
execute
-
Method Details
-
from
FetchCommand from(org.eclipse.jgit.transport.URIish remote, List<org.eclipse.jgit.transport.RefSpec> refspecs) from.- Parameters:
remote- aURIishobject.refspecs- aListobject.- Returns:
- a
FetchCommandobject.
-
prune
Deprecated.favourprune(boolean)prune.- Returns:
- a
FetchCommandobject.
-
prune
prune.- Parameters:
prune-trueif the fetch should prune.- Returns:
- a
FetchCommandobject. - Since:
- 2.5.0
-
shallow
shallow.- Parameters:
shallow- a boolean.- Returns:
- a
FetchCommandobject.
-
timeout
timeout.- Parameters:
timeout- aIntegerobject.- Returns:
- a
FetchCommandobject.
-
tags
-
depth
When shallow cloning, allow for a depth to be set in cases where you need more than the immediate last commit. Has no effect if shallow is set to false (default)- Parameters:
depth- number of revisions to be included in shallow clone- Returns:
- a
CloneCommandobject.
-
prune(boolean)