public interface BitbucketApiService
Modifier and Type | Method and Description |
---|---|
List<BitbucketNodeEntity> |
getBranches(String owner,
String slug,
String username,
String password)
Retrieve list of branches for given repository
|
List<BitbucketResourceEntity> |
getPublicRepositories(String username)
Return a list of public repositories that user has access to.
|
List<BitbucketResourceEntity> |
getRepositories(String username,
String password)
Retrieve list of all repositories accessible to Bitbucket user
|
void |
updateBuildStatus(String owner,
String slug,
String revision,
RestBuildStatus buildStatus,
String username,
String password)
Send build status update to Bitbucket server
|
@NotNull List<BitbucketResourceEntity> getPublicRepositories(@NotNull String username) throws BitbucketApiException
username
- BitbucketApiException
@NotNull List<BitbucketResourceEntity> getRepositories(@NotNull String username, @NotNull String password) throws BitbucketApiException
username
- password
- BitbucketApiException
@NotNull List<BitbucketNodeEntity> getBranches(@NotNull String owner, @NotNull String slug, @NotNull String username, @Nullable String password) throws BitbucketApiException
owner
- slug
- username
- password
- BitbucketApiException
void updateBuildStatus(@NotNull String owner, @NotNull String slug, @NotNull String revision, @NotNull RestBuildStatus buildStatus, @NotNull String username, @NotNull String password) throws BitbucketApiException
owner
- repository ownerslug
- repository slugrevision
- changeset revisionbuildStatus
- payload to be sent to Bitbucketusername
- credentials used to authenticate against Bitbucketpassword
- credentials used to authenticate against BitbucketBitbucketApiException
Copyright © 2017 Atlassian Software Systems Pty Ltd. All rights reserved.