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 classGitTagAction.DescriptorImplJust for assisting form related stuff.static classGitTagAction.TagInfoclassGitTagAction.TagWorkerThreadThe 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 protectedGitTagAction(Run build, FilePath workspace, hudson.plugins.git.Revision revision)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddoSubmit(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp)Invoked to actually tag the workspace.Descriptor<GitTagAction>getDescriptor()StringgetDisplayName()StringgetIconFileName()PermissiongetPermission()List<GitTagAction.TagInfo>getTagInfo()Map<String,List<String>>getTags()StringgetTooltip()booleanisTagged()-
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:
getDescriptorin interfaceDescribable<GitTagAction>
-
isTagged
public boolean isTagged()
- Specified by:
isTaggedin classAbstractScmTagAction
-
getIconFileName
public String getIconFileName()
- Specified by:
getIconFileNamein interfaceAction- Specified by:
getIconFileNamein classTaskAction
-
getDisplayName
public String getDisplayName()
- Specified by:
getDisplayNamein interfaceAction- Specified by:
getDisplayNamein 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:
getTooltipin classAbstractScmTagAction
-
doSubmit
public void doSubmit(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp) throws IOException, javax.servlet.ServletExceptionInvoked 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:
getPermissionin classAbstractScmTagAction
-
-