Class GitStatus.Listener

    • Constructor Detail

      • Listener

        public Listener()
    • Method Detail

      • onNotifyCommit

        @Deprecated
        public List<GitStatus.ResponseContributor> onNotifyCommit​(org.eclipse.jgit.transport.URIish uri,
                                                                  @Nullable
                                                                  String sha1,
                                                                  List<ParameterValue> buildParameters,
                                                                  String... branches)
        Called when there is a change notification on a specific repository url.
        Parameters:
        uri - the repository uri.
        sha1 - SHA1 hash of commit to build
        buildParameters - parameters to be passed to the build. Ignored unless build parameter flag is set due to security risk of accepting parameters from unauthenticated sources
        branches - the (optional) branch information.
        Returns:
        any response contributors for the response to the push request.
        Since:
        2.4.0
      • onNotifyCommit

        public List<GitStatus.ResponseContributor> onNotifyCommit​(@CheckForNull
                                                                  String origin,
                                                                  org.eclipse.jgit.transport.URIish uri,
                                                                  @Nullable
                                                                  String sha1,
                                                                  List<ParameterValue> buildParameters,
                                                                  String... branches)
        Called when there is a change notification on a specific repository url.
        Parameters:
        origin - the origin of the notification (use SCMEvent.originOf(HttpServletRequest) if in doubt) or null if the origin is unknown.
        uri - the repository uri.
        sha1 - SHA1 hash of commit to build
        buildParameters - parameters to be passed to the build. Ignored unless build parameter flag is set due to security risk of accepting parameters from unauthenticated sources
        branches - the (optional) branch information.
        Returns:
        any response contributors for the response to the push request.
        Since:
        2.6.5