Skip to content

Commit

Permalink
Adding debug info.
Browse files Browse the repository at this point in the history
  • Loading branch information
benjaminfuchs committed Sep 10, 2018
1 parent 18f90a0 commit f3ded9e
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ private static void sendNotifications(Run<?, ?> build, TaskListener listener)
if (sourceCache.containsKey(buildName)) {
s = sourceCache.get(buildName);
} else {
listener.getLogger().println("[Bitbucket] SCM source not supported.");
return;
}
} else {
Expand All @@ -130,11 +131,13 @@ private static void sendNotifications(Run<?, ?> build, TaskListener listener)
if (new BitbucketSCMSourceContext(null, SCMHeadObserver.none())
.withTraits(source.getTraits())
.notificationsDisabled()) {
listener.getLogger().println("[Bitbucket] Notifications disabled.");
return;
}
SCMRevision r = SCMRevisionAction.getRevision(build); // TODO JENKINS-44648 getRevision(s, build)
String hash = getHash(r);
if (hash == null) {
listener.getLogger().println("[Bitbucket] Can not notify. Hash is 'null'.");
return;
}
if (r instanceof PullRequestSCMRevision) {
Expand Down

0 comments on commit f3ded9e

Please sign in to comment.