public static class MirrorSyncCommandParameters.Builder extends Object
| Constructor and Description |
|---|
Builder(MirrorSyncCommandParameters mirrorSyncCommandParameters) |
Builder(String remoteUrl) |
| Modifier and Type | Method and Description |
|---|---|
MirrorSyncCommandParameters |
build() |
MirrorSyncCommandParameters.Builder |
includePrivateRefs(boolean value)
If an explicit refspec is set then this setting is ignored.
|
MirrorSyncCommandParameters.Builder |
password(String value) |
MirrorSyncCommandParameters.Builder |
privateKey(File value) |
MirrorSyncCommandParameters.Builder |
privateKey(Path value) |
MirrorSyncCommandParameters.Builder |
prune(boolean value)
Specifies whether to supply
--prune to prune local branches and tags where the upstream branch
or tag has been deleted. |
MirrorSyncCommandParameters.Builder |
refspecs(Iterable<String> values) |
MirrorSyncCommandParameters.Builder |
username(String value) |
MirrorSyncCommandParameters.Builder |
withEnvironment(String name,
String value)
Puts the provided
value in the environment map with the specified name, after ensuring
both the name and value are not blank. |
MirrorSyncCommandParameters.Builder |
withTags(boolean value)
If using a refspec that includes tags this must be set to false or the fetch command will fail.
|
public Builder(@Nonnull MirrorSyncCommandParameters mirrorSyncCommandParameters)
mirrorSyncCommandParameters - to copy@Nonnull public MirrorSyncCommandParameters build()
@Nonnull public MirrorSyncCommandParameters.Builder includePrivateRefs(boolean value)
value - whether to include private refs (outside refs/heads and refs/tags) in the fetch. The default
value is true so all refs will be fetched.this@Nonnull public MirrorSyncCommandParameters.Builder withTags(boolean value)
value - whether to include tags from the fetch unless included explicitly in a refspec.@Nonnull public MirrorSyncCommandParameters.Builder password(@Nonnull String value)
value - the password to usethis@Nonnull public MirrorSyncCommandParameters.Builder privateKey(@Nonnull File value)
value - the SSH private key to use for authenticationthis@Nonnull public MirrorSyncCommandParameters.Builder privateKey(@Nonnull Path value)
value - the SSH private key to use for authenticationthis@Nonnull public MirrorSyncCommandParameters.Builder prune(boolean value)
--prune to prune local branches and tags where the upstream branch
or tag has been deleted.value - true if pruning should be enabled@Nonnull public MirrorSyncCommandParameters.Builder refspecs(@Nonnull Iterable<String> values)
values - refspecs to be passed to the fetch command@Nonnull public MirrorSyncCommandParameters.Builder username(@Nonnull String value)
value - the username to usethis@Nonnull public MirrorSyncCommandParameters.Builder withEnvironment(@Nonnull String name, @Nonnull String value)
value in the environment map with the specified name, after ensuring
both the name and value are not blank.name - the name of the environment variable to setvalue - the value to set for the environment variableCopyright © 2019 Atlassian. All rights reserved.