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
Nested ClassesModifier and TypeClassDescriptionstatic classJust for assisting form related stuff.static classfinal classThe thread that performs tagging operation asynchronously. -
Field Summary
Fields inherited from class hudson.scm.AbstractScmTagAction
buildFields inherited from class hudson.model.TaskAction
log, workerThread -
Method Summary
Modifier and TypeMethodDescriptionvoiddoSubmit(org.kohsuke.stapler.StaplerRequest2 req, org.kohsuke.stapler.StaplerResponse2 rsp) Invoked to actually tag the workspace.getTags()booleanhasTags()Was any tag created by the user already?booleanisTagged()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, doIndex, getACL, getBuild, getRun, getUrlName, onAttached, onLoadMethods inherited from class hudson.model.TaskAction
doClearError, doProgressiveHtml, doProgressiveLog, getLog, getSearchUrl, getWorkerThread, obtainLogMethods inherited from class hudson.model.AbstractModelObject
getSearch, getSearchIndex, getSearchName, makeSearchIndex, requirePOST, sendError, sendError, sendError, sendError, sendError, sendError, sendError, sendError
-
Method Details
-
hasTags
public boolean hasTags()Was any tag created by the user already? -
getIconFileName
- Specified by:
getIconFileNamein interfaceAction- Specified by:
getIconFileNamein classTaskAction
-
getDisplayName
- Specified by:
getDisplayNamein interfaceAction- Specified by:
getDisplayNamein interfaceModelObject
-
getTags
- See Also:
-
tags
-
getTagInfo
-
isTagged
public boolean isTagged()Returns true if this build has already been tagged at least once.- Specified by:
isTaggedin classAbstractScmTagAction
-
getTooltip
- Overrides:
getTooltipin 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.StaplerRequest2 req, org.kohsuke.stapler.StaplerResponse2 rsp) throws IOException, jakarta.servlet.ServletException Invoked to actually tag the workspace.- Throws:
IOExceptionjakarta.servlet.ServletException
-
getPermission
- Overrides:
getPermissionin classAbstractScmTagAction
-
getDescriptor
- Specified by:
getDescriptorin interfaceDescribable<SubversionTagAction>
-