Class BitbucketRepository
java.lang.Object
com.atlassian.bitbucket.jenkins.internal.model.BitbucketRepository
-
Constructor Summary
ConstructorsConstructorDescriptionBitbucketRepository(int repositoryId, String name, BitbucketProject project, String slug, RepositoryState state, List<BitbucketNamedLink> cloneUrls, String selfLink) BitbucketRepository(int id, String name, Map<String, List<BitbucketNamedLink>> links, BitbucketProject project, String slug, RepositoryState state) -
Method Summary
Modifier and TypeMethodDescriptionbooleangetCloneUrl(CloneProtocol cloneProtocol) intgetId()getName()The self link on webhook events was only introduced in Bitbucket Server 5.14, so this may be blankgetSlug()getState()inthashCode()
-
Constructor Details
-
BitbucketRepository
public BitbucketRepository(int repositoryId, String name, BitbucketProject project, String slug, RepositoryState state, List<BitbucketNamedLink> cloneUrls, String selfLink) -
BitbucketRepository
public BitbucketRepository(int id, String name, @CheckForNull Map<String, List<BitbucketNamedLink>> links, BitbucketProject project, String slug, RepositoryState state)
-
-
Method Details
-
equals
-
getCloneUrls
-
getCloneUrl
-
getId
public int getId() -
getName
-
getProject
-
getSelfLink
The self link on webhook events was only introduced in Bitbucket Server 5.14, so this may be blank- Returns:
- the self link for the repository if the Bitbucket instance is 5.14 or higher, otherwise
""
-
getSlug
-
getState
-
hashCode
public int hashCode()
-