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 |
|
Constructor Summary |
PerforceTagAction(hudson.model.AbstractBuild build,
com.tek42.perforce.Depot depot,
int changeNumber,
java.lang.String view)
|
|
Method Summary |
void |
doCheckTag(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp)
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 |
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)
|
| 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,
com.tek42.perforce.Depot depot,
int changeNumber,
java.lang.String view)
getChangeNumber
public int getChangeNumber()
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 void doCheckTag(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp)
throws java.io.IOException,
javax.servlet.ServletException
- Checks if the value is a valid Perforce tag (label) name.
- Throws:
java.io.IOException
javax.servlet.ServletException
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
Copyright © 2009. All Rights Reserved.