Package sonia.scm.repository.api
Class PullCommandBuilder
java.lang.Object
sonia.scm.repository.api.PullCommandBuilder
The pull command pull changes from a other repository.
- Since:
- 1.31
-
Method Summary
Modifier and TypeMethodDescriptiondoFetchLfs
(boolean fetchLfs) Set whether to fetch LFS files (true
) or not (false
).Pull all changes from the given remote url.pull
(Repository remoteRepository) Pull all changes from the given remote repository.withPassword
(String password) Set password for authenticationwithUsername
(String username) Set username for authentication
-
Method Details
-
withUsername
Set username for authentication- Parameters:
username
- username- Returns:
- this builder instance.
- Since:
- 2.11.0
-
withPassword
Set password for authentication- Parameters:
password
- password- Returns:
- this builder instance.
- Since:
- 2.11.0
-
doFetchLfs
Set whether to fetch LFS files (true
) or not (false
). This may not work for all repository types.- Parameters:
fetchLfs
- Whether to fetch LFS files or not- Returns:
- this builder instance.
- Since:
- 2.40.0
-
pull
Pull all changes from the given remote url.- Parameters:
url
- remote url- Returns:
- information over the executed pull command
- Throws:
IOException
- Since:
- 1.43
-
pull
Pull all changes from the given remote repository.- Parameters:
remoteRepository
- remote repository- Returns:
- information over the executed pull command
- Throws:
IOException
-