Class PublishGitWorkTreeParameters.Builder
java.lang.Object
com.atlassian.bitbucket.util.BuilderSupport
com.atlassian.bitbucket.scm.git.worktree.PublishGitWorkTreeParameters.Builder
- Enclosing class:
- PublishGitWorkTreeParameters
public static class PublishGitWorkTreeParameters.Builder
extends com.atlassian.bitbucket.util.BuilderSupport
-
Field Summary
Fields inherited from class com.atlassian.bitbucket.util.BuilderSupport
NOT_BLANK -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.atlassian.bitbucket.util.BuilderSupport
addIf, addIf, addIf, addIf, addIf, addIf, checkNotBlank, requireNonBlank
-
Constructor Details
-
Builder
-
-
Method Details
-
author
@Nonnull public PublishGitWorkTreeParameters.Builder author(@Nonnull com.atlassian.bitbucket.user.Person value) -
branch
@Nonnull public PublishGitWorkTreeParameters.Builder branch(@Nonnull String branch, @Nullable String expectedHash) Specifies the branch to publish the work tree to. SpecifyexpectedHashto only update the target branch if the branch is at the expected stated. IfexpectedHashis set to0000000000000000000000000000000000000000, publishing will only succeed if the branch does not yet exist. If set tonull, the target branch will be updated regardless of its current value.- Parameters:
branch- the branch to updateexpectedHash- the hash the branch is expected to be at (prior to publishing)- Returns:
- the builder
-
build
-
timeout
-