Interface BitbucketNotifier
- All Known Implementing Classes:
BitbucketDefaulNotifier
public interface BitbucketNotifier
Implementations must provides a concrete way to notify to Bitbucket commit.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Notify bitbucket through the build status API.default void
notifyComment
(String hash, String content) Convenience method that callsnotifyComment(String, String, String, String)
without owner and repository name.void
notifyComment
(String repoOwner, String repoName, String hash, String content) Notify bitbucket about a new build status on a concrete commit.
-
Method Details
-
notifyComment
void notifyComment(@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.
-
notifyBuildStatus
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.
-
notifyComment
Convenience method that callsnotifyComment(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.
-