@Extension public class MercurialStatus extends Object implements UnprotectedRootAction
ExtensionPoint.LegacyInstancesAreScopedToHudson
Constructor and Description |
---|
MercurialStatus() |
Modifier and Type | Method and Description |
---|---|
org.kohsuke.stapler.HttpResponse |
doNotifyCommit(String url,
String branch,
String changesetId)
Handles the incoming commit notification.
|
String |
getDisplayName() |
String |
getIconFileName() |
String |
getUrlName() |
public static final String URL_NAME
public String getDisplayName()
getDisplayName
in interface Action
getDisplayName
in interface ModelObject
public String getIconFileName()
getIconFileName
in interface Action
public String getUrlName()
getUrlName
in interface Action
@Restricted(value=org.kohsuke.accmod.restrictions.NoExternalUse.class) public org.kohsuke.stapler.HttpResponse doNotifyCommit(@QueryParameter(required=true) String url, @QueryParameter String branch, @QueryParameter String changesetId) throws javax.servlet.ServletException, IOException
commit.jenkins = wget -q -O /dev/null <jenkins root>/mercurial/notifyCommit?url=<repository remote url>
commit.jenkins = python:<path to hook.py>using an in-process hook as shown in
MercurialRule.registerHook
.
url
- the URL of the mercurial repositorybranch
- (optional) branch name of the commit.changesetId
- (optional) changesetId of the commit.javax.servlet.ServletException
- if something goes wrong.IOException
- if something goes wrong.Copyright © 2016–2022. All rights reserved.