Package hudson.plugins.git
Class GitStatus.JenkinsAbstractProjectListener
- java.lang.Object
-
- hudson.plugins.git.GitStatus.Listener
-
- hudson.plugins.git.GitStatus.JenkinsAbstractProjectListener
-
- All Implemented Interfaces:
ExtensionPoint
- Enclosing class:
- GitStatus
@Extension public static class GitStatus.JenkinsAbstractProjectListener extends GitStatus.Listener
Handle standardSCMTriggerItem
instances with a standardSCMTrigger
.- Since:
- 1.4.1
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Constructor Summary
Constructors Constructor Description JenkinsAbstractProjectListener()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.-
Methods inherited from class hudson.plugins.git.GitStatus.Listener
onNotifyCommit, onNotifyCommit, onNotifyCommit
-
-
-
-
Method Detail
-
onNotifyCommit
public 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.- Overrides:
onNotifyCommit
in classGitStatus.Listener
- 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.
-
-