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 |
|
Method Summary |
hudson.util.FormValidation |
doCheckTag(java.lang.String value)
Checks if the value is a valid Perforce tag (label) name. |
void |
doSubmit(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp)
Invoked to actually tag the workspace. |
int |
getChangeNumber()
|
java.lang.String |
getDescription()
|
java.lang.String |
getDisplayName()
|
java.lang.String |
getIconFileName()
|
java.lang.String |
getTag()
|
java.lang.String |
getView()
|
java.lang.String |
isInvalidTag(java.lang.String tag)
Checks to see if the user entered tag matches any Perforce restrictions. |
boolean |
isTagged()
Returns true if this build has already been tagged at least once. |
void |
setDescription(java.lang.String desc)
|
void |
setTag(java.lang.String tag)
|
void |
tagBuild(java.lang.String tagname,
java.lang.String description)
|
| Methods inherited from class hudson.scm.AbstractScmTagAction |
chooseAction, doIndex, getACL, getBuild, getPermission, getTooltip, getUrlName |
| Methods inherited from class hudson.model.TaskAction |
doClearError, doProgressiveLog, getLog, getSearchUrl, getWorkerThread |
| Methods inherited from class hudson.model.AbstractModelObject |
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,
java.lang.String views)
PerforceTagAction
public PerforceTagAction(hudson.model.AbstractBuild build,
Depot depot,
java.lang.String label,
java.lang.String views)
PerforceTagAction
public PerforceTagAction(PerforceTagAction tga)
getChangeNumber
public int getChangeNumber()
getView
public java.lang.String getView()
getIconFileName
public java.lang.String getIconFileName()
getDisplayName
public java.lang.String getDisplayName()
getTag
public java.lang.String getTag()
setTag
public void setTag(java.lang.String tag)
getDescription
public java.lang.String getDescription()
setDescription
public void setDescription(java.lang.String desc)
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 java.lang.String isInvalidTag(java.lang.String tag)
- Checks to see if the user entered tag matches any Perforce restrictions.
doCheckTag
public hudson.util.FormValidation doCheckTag(@QueryParameter
java.lang.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 java.io.IOException,
javax.servlet.ServletException
- Invoked to actually tag the workspace.
- Throws:
java.io.IOException
javax.servlet.ServletException
tagBuild
public void tagBuild(java.lang.String tagname,
java.lang.String description)
throws java.io.IOException
- Throws:
java.io.IOException
Copyright © 2010. All Rights Reserved.