Class BitbucketNotifier
- java.lang.Object
-
- com.cloudbees.jenkins.plugins.bitbucket.BitbucketNotifier
-
- Direct Known Subclasses:
BitbucketChangesetCommentNotifier
public abstract class BitbucketNotifier extends Object
Abstract Bitbucket commit notifier implementation.
-
-
Constructor Summary
Constructors Constructor Description BitbucketNotifier()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract void
buildStatus(BitbucketBuildStatus status)
Notify bitbucket through the build status API.void
notify(String hash, String content)
Convenience method that callsnotify(String, String, String, String)
without owner and repository name.abstract void
notify(String repoOwner, String repoName, String hash, String content)
Notify bitbucket about a new build status on a concrete commit.
-
-
-
Method Detail
-
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
public void notify(String hash, String content) throws IOException, InterruptedException
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.
-
-