Class PullCommandBuilder

java.lang.Object
sonia.scm.repository.api.PullCommandBuilder

public final class PullCommandBuilder extends Object
The pull command pull changes from a other repository.
Since:
1.31
  • Method Details

    • withUsername

      public PullCommandBuilder withUsername(String username)
      Set username for authentication
      Parameters:
      username - username
      Returns:
      this builder instance.
      Since:
      2.11.0
    • withPassword

      public PullCommandBuilder withPassword(String password)
      Set password for authentication
      Parameters:
      password - password
      Returns:
      this builder instance.
      Since:
      2.11.0
    • doFetchLfs

      public PullCommandBuilder doFetchLfs(boolean fetchLfs)
      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

      public PullResponse pull(String url) throws IOException
      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

      public PullResponse pull(Repository remoteRepository) throws IOException
      Pull all changes from the given remote repository.
      Parameters:
      remoteRepository - remote repository
      Returns:
      information over the executed pull command
      Throws:
      IOException