public abstract class AbstractScmTagAction extends TaskAction implements BuildBadgeAction, RunAction2
This class implements the action that tags the modules. Derived classes need to provide tagForm.jelly view that displays a form for letting user start tagging.
| Modifier and Type | Field and Description |
|---|---|
protected AbstractBuild |
build
Deprecated.
|
log, workerThread| Modifier | Constructor and Description |
|---|---|
protected |
AbstractScmTagAction(AbstractBuild build)
Deprecated.
|
protected |
AbstractScmTagAction(Run<?,?> run) |
| Modifier and Type | Method and Description |
|---|---|
protected String |
chooseAction() |
void |
doIndex(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp) |
protected ACL |
getACL()
Gets the
ACL against which TaskAction.getPermission() is checked. |
AbstractBuild |
getBuild()
Deprecated.
|
protected Permission |
getPermission()
Defaults to
SCM.TAG. |
Run<?,?> |
getRun() |
String |
getTooltip()
This message is shown as the tool tip of the build badge icon.
|
String |
getUrlName()
Gets the URL path name.
|
abstract boolean |
isTagged()
Returns true if the build is tagged already.
|
void |
onAttached(Run<?,?> r)
Called when this action is added to a build.
|
void |
onLoad(Run<?,?> r)
Called after a build is loaded to which this action was previously attached.
|
doClearError, doProgressiveHtml, doProgressiveLog, getIconFileName, getLog, getSearchUrl, getWorkerThread, obtainLoggetSearch, getSearchIndex, getSearchName, makeSearchIndex, requirePOST, sendError, sendError, sendError, sendError, sendErrorclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetDisplayName, getIconFileName@Deprecated protected transient AbstractBuild build
protected AbstractScmTagAction(Run<?,?> run)
@Deprecated protected AbstractScmTagAction(AbstractBuild build)
public final String getUrlName()
ActionFor example, if this method returns "xyz", and if the parent object (that this action is associated with) is bound to /foo/bar/zot, then this action object will be exposed to /foo/bar/zot/xyz.
This method should return a string that's unique among other Actions.
The returned string can be an absolute URL, like "http://www.sun.com/", which is useful for directly connecting to external systems.
If the returned string starts with '/', like '/foo', then it's assumed to be relative to the context path of the Jenkins webapp.
getUrlName in interface ActionAction.getIconFileName().Functions.getActionUrl(String, Action)protected Permission getPermission()
SCM.TAG.getPermission in class TaskActionpublic Run<?,?> getRun()
@Deprecated public AbstractBuild getBuild()
public String getTooltip()
public abstract boolean isTagged()
protected ACL getACL()
TaskActionACL against which TaskAction.getPermission() is checked.getACL in class TaskActionpublic void doIndex(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp)
throws IOException,
javax.servlet.ServletException
IOExceptionjavax.servlet.ServletExceptionprotected String chooseAction()
public void onAttached(Run<?,?> r)
RunAction2onAttached in interface RunAction2public void onLoad(Run<?,?> r)
RunAction2onLoad in interface RunAction2Copyright © 2019. All rights reserved.