Package hudson.scm
Class AbstractScmTagAction
- java.lang.Object
-
- hudson.model.AbstractModelObject
-
- hudson.model.TaskAction
-
- hudson.scm.AbstractScmTagAction
-
- All Implemented Interfaces:
Action
,BuildBadgeAction
,ModelObject
,SearchableModelObject
,SearchItem
,RunAction2
public abstract class AbstractScmTagAction extends TaskAction implements BuildBadgeAction, RunAction2
Common part ofCVSSCM.TagAction
andSubversionTagAction
.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.- Author:
- Kohsuke Kawaguchi
-
-
Field Summary
Fields Modifier and Type Field Description protected AbstractBuild
build
Deprecated.-
Fields inherited from class hudson.model.TaskAction
log, workerThread
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractScmTagAction(AbstractBuild build)
Deprecated.protected
AbstractScmTagAction(Run<?,?> run)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected String
chooseAction()
void
doIndex(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp)
protected ACL
getACL()
Gets theACL
against whichTaskAction.getPermission()
is checked.AbstractBuild
getBuild()
Deprecated.protected Permission
getPermission()
Defaults toSCM.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.-
Methods inherited from class hudson.model.TaskAction
doClearError, doProgressiveHtml, doProgressiveLog, getIconFileName, getLog, getSearchUrl, getWorkerThread, obtainLog
-
Methods inherited from class hudson.model.AbstractModelObject
getSearch, getSearchIndex, getSearchName, makeSearchIndex, requirePOST, sendError, sendError, sendError, sendError, sendError
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface hudson.model.Action
getDisplayName, getIconFileName
-
-
-
-
Field Detail
-
build
@Deprecated protected transient AbstractBuild build
Deprecated.
-
-
Constructor Detail
-
AbstractScmTagAction
protected AbstractScmTagAction(Run<?,?> run)
- Since:
- 1.568
-
AbstractScmTagAction
@Deprecated protected AbstractScmTagAction(AbstractBuild build)
Deprecated.
-
-
Method Detail
-
getUrlName
public final String getUrlName()
Description copied from interface:Action
Gets the URL path name.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.
- Specified by:
getUrlName
in interfaceAction
- Returns:
- null if this action object doesn't need to be bound to web
(when you do that, be sure to also return null from
Action.getIconFileName()
. - See Also:
Functions.getActionUrl(String, Action)
-
getPermission
protected Permission getPermission()
Defaults toSCM.TAG
.- Specified by:
getPermission
in classTaskAction
-
getRun
public Run<?,?> getRun()
- Since:
- 1.568
-
getBuild
@Deprecated public AbstractBuild getBuild()
Deprecated.
-
getTooltip
public String getTooltip()
This message is shown as the tool tip of the build badge icon.
-
isTagged
public abstract boolean isTagged()
Returns true if the build is tagged already.
-
getACL
protected ACL getACL()
Description copied from class:TaskAction
Gets theACL
against whichTaskAction.getPermission()
is checked.- Specified by:
getACL
in classTaskAction
-
doIndex
public void doIndex(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp) throws IOException, javax.servlet.ServletException
- Throws:
IOException
javax.servlet.ServletException
-
chooseAction
protected String chooseAction()
-
onAttached
public void onAttached(Run<?,?> r)
Description copied from interface:RunAction2
Called when this action is added to a build.- Specified by:
onAttached
in interfaceRunAction2
-
onLoad
public void onLoad(Run<?,?> r)
Description copied from interface:RunAction2
Called after a build is loaded to which this action was previously attached.- Specified by:
onLoad
in interfaceRunAction2
-
-