public abstract static class GitStatus.Listener extends Object implements ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson| Constructor and Description |
|---|
Listener() |
| Modifier and Type | Method and Description |
|---|---|
List<GitStatus.ResponseContributor> |
onNotifyCommit(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.
|
List<GitStatus.ResponseContributor> |
onNotifyCommit(org.eclipse.jgit.transport.URIish uri,
String[] branches)
Deprecated.
|
List<GitStatus.ResponseContributor> |
onNotifyCommit(org.eclipse.jgit.transport.URIish uri,
String sha1,
List<ParameterValue> buildParameters,
String... branches)
Deprecated.
|
List<GitStatus.ResponseContributor> |
onNotifyCommit(org.eclipse.jgit.transport.URIish uri,
String sha1,
String... branches)
Deprecated.
|
public List<GitStatus.ResponseContributor> onNotifyCommit(org.eclipse.jgit.transport.URIish uri, String[] branches)
onNotifyCommit(org.eclipse.jgit.transport.URIish, String, List, String...)uri - the repository uri.branches - the (optional) branch information.public List<GitStatus.ResponseContributor> onNotifyCommit(org.eclipse.jgit.transport.URIish uri, @Nullable String sha1, String... branches)
onNotifyCommit(org.eclipse.jgit.transport.URIish, String, List, String...)uri - the repository uri.sha1 - SHA1 hash of commit to buildbranches - the (optional) branch information.@Deprecated public List<GitStatus.ResponseContributor> onNotifyCommit(org.eclipse.jgit.transport.URIish uri, @Nullable String sha1, List<ParameterValue> buildParameters, String... branches)
onNotifyCommit(String, URIish, String, List, String...)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.public List<GitStatus.ResponseContributor> onNotifyCommit(@CheckForNull String origin, org.eclipse.jgit.transport.URIish uri, @Nullable String sha1, List<ParameterValue> buildParameters, String... branches)
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 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.Copyright © 2007–2021. All rights reserved.