Package org.jenkinsci.plugins.p4.tagging
Class TagAction
- java.lang.Object
-
- hudson.model.AbstractModelObject
-
- hudson.model.TaskAction
-
- hudson.scm.AbstractScmTagAction
-
- org.jenkinsci.plugins.p4.tagging.TagAction
-
- All Implemented Interfaces:
Action,BuildBadgeAction,ModelObject,SearchableModelObject,SearchItem,RunAction2
public class TagAction extends AbstractScmTagAction
-
-
Field Summary
-
Fields inherited from class hudson.scm.AbstractScmTagAction
build
-
Fields inherited from class hudson.model.TaskAction
log, workerThread
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voiddoSubmit(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp)P4RevisiongetBuildChange()Deprecated.FilegetChangelog()StringgetClient()StringgetCredential()StringgetDisplayName()StringgetIconFileName()StringgetJenkinsPath()com.perforce.p4java.impl.generic.core.LabelgetLabel(String tag)Method used by Jelly code to show Label information (do not remove)static TagActiongetLastAction(Run<?,?> run)Find the last action; use this for environment variable as the last action has the latest values.static List<P4Ref>getLastChange(Run<?,?> run, TaskListener listener, String syncID)Change reporting...StringgetPort()P4RefgetRefChange()List<P4Ref>getRefChanges()P4ReviewgetReview()StringgetSyncID()StringgetTag()List<String>getTags()StringgetTicket()StringgetUser()WorkspacegetWorkspace()booleanisTagged()voidlabelBuild(TaskListener listener, String name, String description, FilePath nodeWorkspace)voidsetBuildChange(P4Revision buildChange)Deprecated.voidsetChangelog(File changelog)voidsetJenkinsPath(String jenkinsPath)voidsetRefChanges(List<P4Ref> refChanges)voidsetWorkspace(Workspace workspace)-
Methods inherited from class hudson.scm.AbstractScmTagAction
chooseAction, doIndex, getACL, getBuild, getPermission, getRun, getTooltip, 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
-
-
-
-
Constructor Detail
-
TagAction
public TagAction(Run<?,?> run, String credential) throws IOException, InterruptedException
- Throws:
IOExceptionInterruptedException
-
-
Method Detail
-
getIconFileName
public String getIconFileName()
- Specified by:
getIconFileNamein interfaceAction- Specified by:
getIconFileNamein classTaskAction
-
getDisplayName
public String getDisplayName()
-
isTagged
public boolean isTagged()
- Specified by:
isTaggedin classAbstractScmTagAction
-
doSubmit
@POST public void doSubmit(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp) throws Exception, javax.servlet.ServletException- Throws:
Exceptionjavax.servlet.ServletException
-
labelBuild
public void labelBuild(TaskListener listener, String name, String description, FilePath nodeWorkspace) throws Exception
- Throws:
Exception
-
getRefChange
public P4Ref getRefChange()
-
setBuildChange
@Deprecated public void setBuildChange(P4Revision buildChange)
Deprecated.
-
getBuildChange
@Deprecated public P4Revision getBuildChange()
Deprecated.
-
getCredential
public String getCredential()
-
getWorkspace
public Workspace getWorkspace()
-
setWorkspace
public void setWorkspace(Workspace workspace)
-
getPort
public String getPort()
-
getClient
public String getClient()
-
getSyncID
public String getSyncID()
-
getUser
public String getUser()
-
getTicket
public String getTicket()
-
getTag
public String getTag()
-
getLabel
public com.perforce.p4java.impl.generic.core.Label getLabel(String tag)
Method used by Jelly code to show Label information (do not remove)- Parameters:
tag- Label name- Returns:
- Perforce Label object
-
getLastChange
public static List<P4Ref> getLastChange(Run<?,?> run, TaskListener listener, String syncID)
Change reporting...- Parameters:
run- The current buildlistener- Listener for loggingsyncID- Changelist Sync ID- Returns:
- Perforce change
-
getLastAction
public static TagAction getLastAction(Run<?,?> run)
Find the last action; use this for environment variable as the last action has the latest values.- Parameters:
run- The current build- Returns:
- Action
-
getReview
public P4Review getReview()
-
setChangelog
public void setChangelog(File changelog)
-
getChangelog
public File getChangelog()
-
setJenkinsPath
public void setJenkinsPath(String jenkinsPath)
-
getJenkinsPath
public String getJenkinsPath()
-
-