Class BitbucketDefaulNotifier
java.lang.Object
com.cloudbees.jenkins.plugins.bitbucket.impl.notifier.BitbucketDefaulNotifier
- All Implemented Interfaces:
BitbucketNotifier
The default Bitbucket notifier implementation that sends notifications.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Notify bitbucket through the build status API.void
notifyComment
(String repoOwner, String repoName, String hash, String content) Notify bitbucket about a new build status on a concrete commit.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.cloudbees.jenkins.plugins.bitbucket.BitbucketNotifier
notifyComment
-
Constructor Details
-
BitbucketDefaulNotifier
-
-
Method Details
-
notifyComment
public void notifyComment(String repoOwner, String repoName, String hash, String content) throws IOException, InterruptedException Description copied from interface:BitbucketNotifier
Notify bitbucket about a new build status on a concrete commit.- Specified by:
notifyComment
in interfaceBitbucketNotifier
- 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
Description copied from interface:BitbucketNotifier
Notify bitbucket through the build status API.- Specified by:
notifyBuildStatus
in interfaceBitbucketNotifier
- Parameters:
status
- the status object to serialize- Throws:
IOException
- if there was a communication error during notification.InterruptedException
- if interrupted during notification.
-