Interface HttpNotifier


  • public interface HttpNotifier
    Implement this interface to change the way requests are made to Bitbucket.
    • Method Detail

      • send

        @NonNull
        NotificationResult send​(@NonNull
                                URI uri,
                                @NonNull
                                net.sf.json.JSONObject payload,
                                @NonNull
                                NotificationSettings settings,
                                @NonNull
                                NotificationContext context)
        Basic contract for sending Bitbucket build status notifications.
        Parameters:
        uri - fully-formed URI (stash-base-uri/rest/build-status/1.0/commits/commit-id)
        payload - body of status to post
        settings - user or administrator defined settings for the request
        context - build info
        Returns:
        result of posting status