Class BitbucketChangesetCommentNotifier
- java.lang.Object
-
- com.cloudbees.jenkins.plugins.bitbucket.BitbucketNotifier
-
- com.cloudbees.jenkins.plugins.bitbucket.BitbucketChangesetCommentNotifier
-
public class BitbucketChangesetCommentNotifier extends BitbucketNotifier
Bitbucket notifier implementation that sends notifications as commit comments.
-
-
Constructor Summary
Constructors Constructor Description BitbucketChangesetCommentNotifier(BitbucketApi bitbucket)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
buildStatus(BitbucketBuildStatus status)
Notify bitbucket through the build status API.void
notify(String repoOwner, String repoName, String hash, String content)
Notify bitbucket about a new build status on a concrete commit.-
Methods inherited from class com.cloudbees.jenkins.plugins.bitbucket.BitbucketNotifier
notify
-
-
-
-
Constructor Detail
-
BitbucketChangesetCommentNotifier
public BitbucketChangesetCommentNotifier(@NonNull BitbucketApi bitbucket)
-
-
Method Detail
-
notify
public void notify(String repoOwner, String repoName, String hash, String content) throws IOException, InterruptedException
Description copied from class:BitbucketNotifier
Notify bitbucket about a new build status on a concrete commit.- Specified by:
notify
in classBitbucketNotifier
- 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 void buildStatus(BitbucketBuildStatus status) throws IOException, InterruptedException
Description copied from class:BitbucketNotifier
Notify bitbucket through the build status API.- Specified by:
buildStatus
in classBitbucketNotifier
- Parameters:
status
- the status object to serialize- Throws:
IOException
- if there was a communication error during notification.InterruptedException
- if interrupted during notification.
-
-