hudson.plugins.perforce
Class PerforceTagAction
java.lang.Object
hudson.model.AbstractModelObject
hudson.model.TaskAction
hudson.scm.AbstractScmTagAction
hudson.plugins.perforce.PerforceTagAction
- All Implemented Interfaces:
- hudson.model.Action, hudson.model.BuildBadgeAction, hudson.model.ModelObject, hudson.search.SearchableModelObject, hudson.search.SearchItem
public class PerforceTagAction
- extends hudson.scm.AbstractScmTagAction
Action that lets people create tag for the given build.
- Author:
- Mike Wille
| Fields inherited from class hudson.scm.AbstractScmTagAction |
build |
| Fields inherited from class hudson.model.TaskAction |
log, workerThread |
| Methods inherited from class hudson.scm.AbstractScmTagAction |
chooseAction, doIndex, getACL, getBuild, getTooltip, getUrlName |
| Methods inherited from class hudson.model.TaskAction |
doClearError, doProgressiveHtml, doProgressiveLog, getLog, getSearchUrl, getWorkerThread, obtainLog |
| Methods inherited from class hudson.model.AbstractModelObject |
getConfiguredHudsonProperty, getSearch, getSearchIndex, getSearchName, makeSearchIndex, requirePOST, sendError, sendError, sendError, sendError, sendError |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PerforceTagAction
public PerforceTagAction(hudson.model.AbstractBuild build,
Depot depot,
int changeNumber,
String views,
String owner)
PerforceTagAction
public PerforceTagAction(hudson.model.AbstractBuild build,
Depot depot,
String label,
String views,
String owner)
PerforceTagAction
public PerforceTagAction(PerforceTagAction tga)
getChangeNumber
public int getChangeNumber()
getView
public String getView()
getIconFileName
public String getIconFileName()
getDisplayName
public String getDisplayName()
getTag
public String getTag()
setTag
public void setTag(String tag)
getDescription
public String getDescription()
setDescription
public void setDescription(String desc)
getOwner
public String getOwner()
setOwner
public void setOwner(String owner)
getDepot
public Depot getDepot()
getTags
public List<PerforceTagAction.PerforceTag> getTags()
setTags
public void setTags(List<PerforceTagAction.PerforceTag> tags)
isTagged
public boolean isTagged()
- Returns true if this build has already been tagged at least once.
- Specified by:
isTagged in class hudson.scm.AbstractScmTagAction
isInvalidTag
public String isInvalidTag(String tag)
- Checks to see if the user entered tag matches any Perforce restrictions.
doCheckTag
public hudson.util.FormValidation doCheckTag(@QueryParameter
String value)
- Checks if the value is a valid Perforce tag (label) name.
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.
- Throws:
IOException
javax.servlet.ServletException
tagBuild
public void tagBuild(String tagname,
String description,
String owner)
throws IOException
- Throws:
IOException
readResolve
public Object readResolve()
getPermission
protected hudson.security.Permission getPermission()
- Overrides:
getPermission in class hudson.scm.AbstractScmTagAction
Copyright © 2004-2012 Hudson. All Rights Reserved.