Package hudson.plugins.mercurial
Class MercurialStatus
java.lang.Object
hudson.plugins.mercurial.MercurialStatus
- All Implemented Interfaces:
ExtensionPoint,Action,ModelObject,RootAction,UnprotectedRootAction
Information screen for the use of Mercurial in Jenkins.
-
Nested Class Summary
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.kohsuke.stapler.HttpResponsedoNotifyCommit(String url, String branch, String changesetId) Handles the incoming commit notification.
-
Field Details
-
URL_NAME
- See Also:
-
-
Constructor Details
-
MercurialStatus
public MercurialStatus()
-
-
Method Details
-
getDisplayName
- Specified by:
getDisplayNamein interfaceAction- Specified by:
getDisplayNamein interfaceModelObject
-
getIconFileName
- Specified by:
getIconFileNamein interfaceAction
-
getUrlName
- Specified by:
getUrlNamein interfaceAction
-
doNotifyCommit
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) public org.kohsuke.stapler.HttpResponse doNotifyCommit(@QueryParameter(required=true) String url, @QueryParameter String branch, @QueryParameter String changesetId) throws jakarta.servlet.ServletException, IOException Handles the incoming commit notification. NOTE: This handles two types of notification:- Legacy notification such as from hooks like:
commit.jenkins = wget -q -O /dev/null <jenkins root>/mercurial/notifyCommit?url=<repository remote url>
- Modern notifications such as from hooks like:
commit.jenkins = python:<path to hook.py>
using an in-process hook as shown inMercurialRule.registerHook.
- Parameters:
url- the URL of the mercurial repositorybranch- (optional) branch name of the commit.changesetId- (optional) changesetId of the commit.- Returns:
- the HTTP response
- Throws:
jakarta.servlet.ServletException- if something goes wrong.IOException- if something goes wrong.
- Legacy notification such as from hooks like:
-