hudson.plugins.perforce
Class PerforceTagAction
java.lang.Object
hudson.model.AbstractModelObject
hudson.scm.AbstractScmTagAction
hudson.plugins.perforce.PerforceTagAction
- All Implemented Interfaces:
- hudson.model.Action, hudson.model.ModelObject, hudson.search.SearchableModelObject, hudson.search.SearchItem, java.io.Serializable
public class PerforceTagAction
- extends hudson.scm.AbstractScmTagAction
Action that lets people create tag for the given build.
- Author:
- Mike Wille
- See Also:
- Serialized Form
| Nested classes/interfaces inherited from class hudson.scm.AbstractScmTagAction |
hudson.scm.AbstractScmTagAction.AbstractTagWorkerThread |
| Fields inherited from class hudson.scm.AbstractScmTagAction |
build, 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 |
doClearError, doIndex, doProgressiveLog, getBuild, getSearchUrl, getUrlName, getWorkerThread |
| Methods inherited from class hudson.model.AbstractModelObject |
getSearch, getSearchIndex, getSearchName, makeSearchIndex, 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.
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 © 2007. All Rights Reserved.