Package hudson.plugins.git
Class GitTagAction
- java.lang.Object
-
- hudson.model.AbstractModelObject
-
- hudson.model.TaskAction
-
- hudson.scm.AbstractScmTagAction
-
- hudson.plugins.git.GitTagAction
-
- All Implemented Interfaces:
Action
,BuildBadgeAction
,Describable<GitTagAction>
,ModelObject
,SearchableModelObject
,SearchItem
,RunAction2
@ExportedBean public class GitTagAction extends AbstractScmTagAction implements Describable<GitTagAction>
- Author:
- Nicolas de Loof
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
GitTagAction.DescriptorImpl
Just for assisting form related stuff.static class
GitTagAction.TagInfo
class
GitTagAction.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
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
GitTagAction(Run build, FilePath workspace, hudson.plugins.git.Revision revision)
-
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<GitTagAction>
getDescriptor()
String
getDisplayName()
String
getIconFileName()
Permission
getPermission()
List<GitTagAction.TagInfo>
getTagInfo()
Map<String,List<String>>
getTags()
String
getTooltip()
boolean
isTagged()
-
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
-
getDescriptor
public Descriptor<GitTagAction> getDescriptor()
- Specified by:
getDescriptor
in interfaceDescribable<GitTagAction>
-
isTagged
public boolean isTagged()
- Specified by:
isTagged
in classAbstractScmTagAction
-
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<String,List<String>> getTags()
- Returns:
- tag names and annotations for this repository
- See Also:
tags
-
getTagInfo
@Exported(name="tags") public List<GitTagAction.TagInfo> getTagInfo()
-
getTooltip
public String getTooltip()
- Overrides:
getTooltip
in classAbstractScmTagAction
-
doSubmit
public void doSubmit(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp) throws IOException, javax.servlet.ServletException
Invoked to actually tag the workspace.- Parameters:
req
- request for submitrsp
- response used to send result- Throws:
IOException
- on input or output errorjavax.servlet.ServletException
- on servlet error
-
getPermission
public Permission getPermission()
- Overrides:
getPermission
in classAbstractScmTagAction
-
-