Package com.atlassian.bitbucket.scm
Class PushCommandParameters
java.lang.Object
com.atlassian.bitbucket.scm.PushCommandParameters
- Since:
- 7.11
-
Method Details
-
equals
-
getEnvironment
- Returns:
- a map of environment variables that will be applied to the push command
-
getPassword
- Returns:
- the password to provide for authentication
-
getPrivateKey
- Returns:
- the SSH private key to use for authentication
-
getRefspecs
- Returns:
- a set of refspecs to be passed to the push command, returns an empty set if not set
-
getRemoteUrl
- Returns:
- the URL to push to
-
getUsername
- Returns:
- the username to provide for authentication
-
hashCode
public int hashCode() -
isAnonymous
public boolean isAnonymous()- Returns:
- whether the push command can be done in an anonymous context or not. If not provided, defaults to
false
-
isForce
public boolean isForce()- Returns:
true
when remote refs should be forced to update,false
otherwise. If not provided, defaults tofalse
-
isIncludePrivateRefs
public boolean isIncludePrivateRefs()If an explicit refspec is set then this setting is ignored.- Returns:
true
if private refs (outside refs/heads and refs/tags) should be included in the push
-
isPrune
public boolean isPrune()- Returns:
true
when remote branches and tags should be deleted where the local branch or tag has been deleted. If not provided, defaults tofalse
-
toString
-