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 Classes Modifier and Type Class Description static class
SubversionTagAction.DescriptorImpl
Just for assisting form related stuff.static class
SubversionTagAction.TagInfo
class
SubversionTagAction.TagWorkerThread
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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
doSubmit(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp)
Invoked to actually tag the workspace.Descriptor<SubversionTagAction>
getDescriptor()
String
getDisplayName()
String
getIconFileName()
Permission
getPermission()
List<SubversionTagAction.TagInfo>
getTagInfo()
Map<SubversionSCM.SvnInfo,List<String>>
getTags()
String
getTooltip()
boolean
hasTags()
Was any tag created by the user already?boolean
isTagged()
Returns true if this build has already been tagged at least once.String
makeTagURL(SubversionSCM.SvnInfo si)
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 Detail
-
hasTags
public boolean hasTags()
Was any tag created by the user already?
-
getIconFileName
public String getIconFileName()
- Specified by:
getIconFileName
in interfaceAction
- Specified by:
getIconFileName
in classTaskAction
-
getDisplayName
public String getDisplayName()
- Specified by:
getDisplayName
in interfaceAction
- Specified by:
getDisplayName
in interfaceModelObject
-
getTags
public Map<SubversionSCM.SvnInfo,List<String>> getTags()
- See Also:
tags
-
getTagInfo
@Exported(name="tags") public List<SubversionTagAction.TagInfo> getTagInfo()
-
isTagged
public boolean isTagged()
Returns true if this build has already been tagged at least once.- Specified by:
isTagged
in classAbstractScmTagAction
-
getTooltip
public String getTooltip()
- Overrides:
getTooltip
in classAbstractScmTagAction
-
makeTagURL
public String makeTagURL(SubversionSCM.SvnInfo si)
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
public Permission getPermission()
- Overrides:
getPermission
in classAbstractScmTagAction
-
getDescriptor
public Descriptor<SubversionTagAction> getDescriptor()
- Specified by:
getDescriptor
in interfaceDescribable<SubversionTagAction>
-
-