public abstract class AbstractScmTagAction extends TaskAction implements BuildBadgeAction, RunAction2
CVSSCM.TagAction
and SubversionTagAction
.
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, obtainLog
getSearch, getSearchIndex, getSearchName, makeSearchIndex, requirePOST, sendError, sendError, sendError, sendError, sendError
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDisplayName, getIconFileName
@Deprecated protected transient AbstractBuild build
protected AbstractScmTagAction(Run<?,?> run)
@Deprecated protected AbstractScmTagAction(AbstractBuild build)
public final String getUrlName()
Action
For 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 Action
s.
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 Action
Action.getIconFileName()
.Functions.getActionUrl(String, Action)
protected Permission getPermission()
SCM.TAG
.getPermission
in class TaskAction
public Run<?,?> getRun()
@Deprecated public AbstractBuild getBuild()
public String getTooltip()
public abstract boolean isTagged()
protected ACL getACL()
TaskAction
ACL
against which TaskAction.getPermission()
is checked.getACL
in class TaskAction
public void doIndex(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp) throws IOException, javax.servlet.ServletException
IOException
javax.servlet.ServletException
protected String chooseAction()
public void onAttached(Run<?,?> r)
RunAction2
onAttached
in interface RunAction2
public void onLoad(Run<?,?> r)
RunAction2
onLoad
in interface RunAction2
Copyright © 2004–2021. All rights reserved.