Class BitbucketNotifier
java.lang.Object
com.cloudbees.jenkins.plugins.bitbucket.BitbucketNotifier
- Direct Known Subclasses:
BitbucketChangesetCommentNotifier
Abstract Bitbucket commit notifier implementation.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract void
buildStatus
(BitbucketBuildStatus status) Notify bitbucket through the build status API.void
Convenience method that callsnotify(String, String, String, String)
without owner and repository name.abstract void
Notify bitbucket about a new build status on a concrete commit.
-
Constructor Details
-
BitbucketNotifier
public BitbucketNotifier()
-
-
Method Details
-
notify
public abstract void notify(@CheckForNull String repoOwner, @CheckForNull String repoName, String hash, String content) throws IOException, InterruptedException Notify bitbucket about a new build status on a concrete commit.- Parameters:
repoOwner
- repository owner name (username)repoName
- repository namehash
- commit hashcontent
- notification content- Throws:
IOException
- if there was a communication error during notification.InterruptedException
- if interrupted during notification.
-
buildStatus
public abstract void buildStatus(BitbucketBuildStatus status) throws IOException, InterruptedException Notify bitbucket through the build status API.- Parameters:
status
- the status object to serialize- Throws:
IOException
- if there was a communication error during notification.InterruptedException
- if interrupted during notification.
-
notify
Convenience method that callsnotify(String, String, String, String)
without owner and repository name.- Parameters:
hash
- commit hashcontent
- notification content- Throws:
IOException
- if there was a communication error during notification.InterruptedException
- if interrupted during notification.
-