Package hudson.scm
Class SubversionTagAction
java.lang.Object
hudson.model.AbstractModelObject
hudson.model.TaskAction
hudson.scm.AbstractScmTagAction
hudson.scm.SubversionTagAction
- All Implemented Interfaces:
Action
,BuildBadgeAction
,Describable<SubversionTagAction>
,ModelObject
,SearchableModelObject
,SearchItem
,RunAction2
@ExportedBean
public class SubversionTagAction
extends AbstractScmTagAction
implements Describable<SubversionTagAction>
Action
that lets people create tag for the given build.- Author:
- Kohsuke Kawaguchi
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Just for assisting form related stuff.static class
final class
The thread that performs tagging operation asynchronously. -
Field Summary
Fields inherited from class hudson.scm.AbstractScmTagAction
build
Fields inherited from class hudson.model.TaskAction
log, workerThread
-
Method Summary
Modifier and TypeMethodDescriptionvoid
doSubmit
(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp) Invoked to actually tag the workspace.getTags()
boolean
hasTags()
Was any tag created by the user already?boolean
isTagged()
Returns true if this build has already been tagged at least once.Creates a URL, to be used as the default value of the module tag URL.Methods inherited from class hudson.scm.AbstractScmTagAction
chooseAction, doIndex, getACL, getBuild, getRun, getUrlName, onAttached, onLoad
Methods inherited from class hudson.model.TaskAction
doClearError, doProgressiveHtml, doProgressiveLog, getLog, getSearchUrl, getWorkerThread, obtainLog
Methods inherited from class hudson.model.AbstractModelObject
getSearch, getSearchIndex, getSearchName, makeSearchIndex, requirePOST, sendError, sendError, sendError, sendError, sendError
-
Method Details
-
hasTags
public boolean hasTags()Was any tag created by the user already? -
getIconFileName
- Specified by:
getIconFileName
in interfaceAction
- Specified by:
getIconFileName
in classTaskAction
-
getDisplayName
- Specified by:
getDisplayName
in interfaceAction
- Specified by:
getDisplayName
in interfaceModelObject
-
getTags
- See Also:
-
tags
-
getTagInfo
-
isTagged
public boolean isTagged()Returns true if this build has already been tagged at least once.- Specified by:
isTagged
in classAbstractScmTagAction
-
getTooltip
- Overrides:
getTooltip
in classAbstractScmTagAction
-
makeTagURL
Creates a URL, to be used as the default value of the module tag URL.- Returns:
- null if failed to guess.
-
doSubmit
@POST public void doSubmit(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp) throws IOException, javax.servlet.ServletException Invoked to actually tag the workspace.- Throws:
IOException
javax.servlet.ServletException
-
getPermission
- Overrides:
getPermission
in classAbstractScmTagAction
-
getDescriptor
- Specified by:
getDescriptor
in interfaceDescribable<SubversionTagAction>
-