@Extension
public class GitStatus
extends hudson.model.AbstractModelObject
implements hudson.model.UnprotectedRootAction
| Modifier and Type | Class and Description |
|---|---|
static class |
GitStatus.CommitHookCause |
static class |
GitStatus.JenkinsAbstractProjectListener
Handle standard
SCMTriggerItem instances with a standard SCMTrigger. |
static class |
GitStatus.Listener
Other plugins may be interested in listening for these updates.
|
static class |
GitStatus.MessageResponseContributor
A response contributor that just adds a simple message to the body.
|
static class |
GitStatus.ResponseContributor
Contributes to a
doNotifyCommit(HttpServletRequest, String, String, String) response. |
| Modifier and Type | Field and Description |
|---|---|
static boolean |
ALLOW_NOTIFY_COMMIT_PARAMETERS
Allow arbitrary notify commit parameters.
|
static String |
SAFE_PARAMETERS
Allow specifically declared safe parameters.
|
| Constructor and Description |
|---|
GitStatus() |
| Modifier and Type | Method and Description |
|---|---|
org.kohsuke.stapler.HttpResponse |
doNotifyCommit(javax.servlet.http.HttpServletRequest request,
String url,
String branches,
String sha1) |
String |
getDisplayName() |
String |
getIconFileName() |
String |
getSearchUrl() |
String |
getUrlName() |
static boolean |
looselyMatches(org.eclipse.jgit.transport.URIish lhs,
org.eclipse.jgit.transport.URIish rhs)
Used to test if what we have in the job configuration matches what was submitted to the notification endpoint.
|
String |
toString() |
public static final boolean ALLOW_NOTIFY_COMMIT_PARAMETERS
public static final String SAFE_PARAMETERS
public String getDisplayName()
getDisplayName in interface hudson.model.ActiongetDisplayName in interface hudson.model.ModelObjectpublic String getSearchUrl()
getSearchUrl in interface hudson.search.SearchItempublic String getIconFileName()
getIconFileName in interface hudson.model.Actionpublic String getUrlName()
getUrlName in interface hudson.model.Actionpublic org.kohsuke.stapler.HttpResponse doNotifyCommit(javax.servlet.http.HttpServletRequest request,
@QueryParameter(required=true)
String url,
@QueryParameter(required=false)
String branches,
@QueryParameter(required=false)
String sha1)
throws javax.servlet.ServletException,
IOException
javax.servlet.ServletExceptionIOExceptionpublic static boolean looselyMatches(org.eclipse.jgit.transport.URIish lhs,
org.eclipse.jgit.transport.URIish rhs)
lhs - left-hand side of comparisonrhs - right-hand side of comparisonCopyright © 2007–2017. All rights reserved.