public abstract class AbstractTask extends Object implements Serializable
Constructor and Description |
---|
AbstractTask() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
checkConnection(ClientHelper p4) |
protected String |
getClient() |
protected ClientHelper |
getConnection() |
P4BaseCredentials |
getCredential() |
hudson.model.TaskListener |
getListener() |
protected Workspace |
getWorkspace() |
void |
setCredential(String credential) |
Workspace |
setEnvironment(hudson.model.Run<?,?> run,
Workspace wsType,
hudson.FilePath buildWorkspace) |
void |
setListener(hudson.model.TaskListener listener) |
Workspace |
setNextChange(Workspace ws,
List<Integer> changes) |
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
- Exception
public P4BaseCredentials getCredential()
public void setCredential(String credential)
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
protected String getClient()
protected Workspace getWorkspace()
protected ClientHelper getConnection()
protected boolean checkConnection(ClientHelper p4)
protected Object tryTask() throws hudson.AbortException
hudson.AbortException
Copyright © 2016. All rights reserved.