public abstract class AbstractTask extends Object implements Serializable
Constructor and Description |
---|
AbstractTask() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
checkConnection(ClientHelper p4) |
String |
getClient() |
protected ClientHelper |
getConnection() |
P4BaseCredentials |
getCredential() |
hudson.model.TaskListener |
getListener() |
String |
getSyncID() |
protected Workspace |
getWorkspace() |
void |
setCredential(String credential)
Deprecated.
|
void |
setCredential(String credential,
hudson.model.Item project) |
void |
setCredential(String credential,
hudson.model.Run run) |
Workspace |
setEnvironment(hudson.model.Run<?,?> run,
Workspace wsType,
hudson.FilePath buildWorkspace) |
void |
setListener(hudson.model.TaskListener listener) |
void |
setWorkspace(Workspace workspace) |
abstract Object |
task(ClientHelper p4)
Implements the Perforce task to retry if necessary
|
protected Object |
tryTask() |
public abstract Object task(ClientHelper p4) throws Exception
p4
- Perforce connection helperException
- push up stackpublic P4BaseCredentials getCredential()
@Deprecated public void setCredential(String credential)
public void setCredential(String credential, hudson.model.Item project)
public void setCredential(String credential, hudson.model.Run run)
public hudson.model.TaskListener getListener()
public void setListener(hudson.model.TaskListener listener)
public void setWorkspace(Workspace workspace) throws hudson.AbortException
hudson.AbortException
public Workspace setEnvironment(hudson.model.Run<?,?> run, Workspace wsType, hudson.FilePath buildWorkspace) throws IOException, InterruptedException
IOException
InterruptedException
public String getClient()
public String getSyncID()
protected Workspace getWorkspace()
protected ClientHelper getConnection()
protected boolean checkConnection(ClientHelper p4)
protected Object tryTask() throws hudson.AbortException
hudson.AbortException
Copyright © 2016–2017. All rights reserved.