Package sonia.scm.repository.api
Class PushCommandBuilder
java.lang.Object
sonia.scm.repository.api.PushCommandBuilder
The push command push changes to another repository.
- Since:
- 1.31
-
Method Summary
Modifier and TypeMethodDescriptionPush all changes to the given remote url.push
(Repository remoteRepository) Push all changes to the given remote repository.withForce
(boolean force) withUsernamePassword
(String username, String password) Set username and password for request
-
Method Details
-
withUsernamePassword
Set username and password for request- Parameters:
username
- usernamepassword
- password- Returns:
- this builder instance.
- Since:
- 2.22.0
-
withForce
-
push
Push all changes to the given remote repository.- Parameters:
remoteRepository
- remote repository- Returns:
- information of the executed push command
- Throws:
IOException
PushFailedException
- when the push (maybe just partially) failed (since 2.47.0)
-
push
Push all changes to the given remote url.- Parameters:
url
- url of a remote repository- Returns:
- information of the executed push command
- Throws:
IOException
PushFailedException
- when the push (maybe just partially) failed (since 2.47.0)- Since:
- 1.43
-