Package hudson.plugins.git
Class GitStatus.Listener
java.lang.Object
hudson.plugins.git.GitStatus.Listener
- All Implemented Interfaces:
ExtensionPoint
- Direct Known Subclasses:
GitSCMSource.ListenerImpl
,GitStatus.JenkinsAbstractProjectListener
- Enclosing class:
- GitStatus
Other plugins may be interested in listening for these updates.
- Since:
- 1.4.1
-
Nested Class Summary
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiononNotifyCommit
(String origin, org.eclipse.jgit.transport.URIish uri, String sha1, List<ParameterValue> buildParameters, String... branches) Called when there is a change notification on a specific repository url.onNotifyCommit
(org.eclipse.jgit.transport.URIish uri, String[] branches) Deprecated.onNotifyCommit
(org.eclipse.jgit.transport.URIish uri, String sha1, String... branches) Deprecated.onNotifyCommit
(org.eclipse.jgit.transport.URIish uri, String sha1, List<ParameterValue> buildParameters, String... branches) Deprecated.
-
Constructor Details
-
Listener
public Listener()
-
-
Method Details
-
onNotifyCommit
@Deprecated public List<GitStatus.ResponseContributor> onNotifyCommit(org.eclipse.jgit.transport.URIish uri, String[] branches) Deprecated.- Parameters:
uri
- the repository uri.branches
- the (optional) branch information.- Returns:
- any response contributors for the response to the push request.
-
onNotifyCommit
@Deprecated public List<GitStatus.ResponseContributor> onNotifyCommit(org.eclipse.jgit.transport.URIish uri, @Nullable String sha1, String... branches) Deprecated.- Parameters:
uri
- the repository uri.sha1
- SHA1 hash of commit to buildbranches
- the (optional) branch information.- Returns:
- any response contributors for the response to the push request.
-
onNotifyCommit
@Deprecated public List<GitStatus.ResponseContributor> onNotifyCommit(org.eclipse.jgit.transport.URIish uri, @Nullable String sha1, List<ParameterValue> buildParameters, String... branches) Deprecated.Called when there is a change notification on a specific repository url.- Parameters:
uri
- the repository uri.sha1
- SHA1 hash of commit to buildbuildParameters
- parameters to be passed to the build. Ignored unless build parameter flag is set due to security risk of accepting parameters from unauthenticated sourcesbranches
- 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 (useSCMEvent.originOf(HttpServletRequest)
if in doubt) ornull
if the origin is unknown.uri
- the repository uri.sha1
- SHA1 hash of commit to buildbuildParameters
- parameters to be passed to the build. Ignored unless build parameter flag is set due to security risk of accepting parameters from unauthenticated sourcesbranches
- the (optional) branch information.- Returns:
- any response contributors for the response to the push request.
- Since:
- 2.6.5
-
onNotifyCommit(org.eclipse.jgit.transport.URIish, String, List, String...)