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 void
doSubmit(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp)
P4Revision
getBuildChange()
Deprecated.File
getChangelog()
String
getClient()
String
getCredential()
String
getDisplayName()
String
getIconFileName()
String
getJenkinsPath()
com.perforce.p4java.impl.generic.core.Label
getLabel(String tag)
Method used by Jelly code to show Label information (do not remove)static TagAction
getLastAction(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...String
getPort()
P4Ref
getRefChange()
List<P4Ref>
getRefChanges()
P4Review
getReview()
String
getSyncID()
String
getTag()
List<String>
getTags()
String
getTicket()
String
getUser()
Workspace
getWorkspace()
boolean
isTagged()
void
labelBuild(TaskListener listener, String name, String description, FilePath nodeWorkspace)
void
setBuildChange(P4Revision buildChange)
Deprecated.void
setChangelog(File changelog)
void
setJenkinsPath(String jenkinsPath)
void
setRefChanges(List<P4Ref> refChanges)
void
setWorkspace(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:
IOException
InterruptedException
-
-
Method Detail
-
getIconFileName
public String getIconFileName()
- Specified by:
getIconFileName
in interfaceAction
- Specified by:
getIconFileName
in classTaskAction
-
getDisplayName
public String getDisplayName()
-
isTagged
public boolean isTagged()
- Specified by:
isTagged
in classAbstractScmTagAction
-
doSubmit
@POST public void doSubmit(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp) throws Exception, javax.servlet.ServletException
- Throws:
Exception
javax.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()
-
-