public class CheckoutTask extends AbstractTask implements hudson.FilePath.FileCallable<Boolean>, Serializable
Constructor and Description |
---|
CheckoutTask(Populate populate)
Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
checkRoles(org.jenkinsci.remoting.RoleChecker checker) |
P4Ref |
getBuildChange() |
List<P4ChangeEntry> |
getChangesFull(List<P4Ref> lastRefs) |
P4ChangeEntry |
getCurrentChange() |
int |
getReview() |
CheckoutStatus |
getStatus() |
List<P4Ref> |
getSyncChange() |
void |
initialise() |
Boolean |
invoke(File workspace,
hudson.remoting.VirtualChannel channel)
Invoke sync on build node (master or remote node).
|
void |
setBuildChange(P4Ref parentChange) |
void |
setIncrementalChanges(List<P4Ref> changes) |
Object |
task(ClientHelper p4)
Implements the Perforce task to retry if necessary
|
checkConnection, getClient, getConnection, getCredential, getListener, getSyncID, getWorkspace, setCredential, setCredential, setCredential, setEnvironment, setListener, setWorkspace, tryTask
public CheckoutTask(Populate populate)
populate
- Populate optionspublic void initialise() throws hudson.AbortException
hudson.AbortException
public Boolean invoke(File workspace, hudson.remoting.VirtualChannel channel) throws IOException
invoke
in interface hudson.FilePath.FileCallable<Boolean>
IOException
public Object task(ClientHelper p4) throws Exception
AbstractTask
task
in class AbstractTask
p4
- Perforce connection helperException
- push up stackpublic List<P4ChangeEntry> getChangesFull(List<P4Ref> lastRefs)
public P4ChangeEntry getCurrentChange()
public CheckoutStatus getStatus()
public P4Ref getBuildChange()
public void setBuildChange(P4Ref parentChange)
public int getReview()
public void checkRoles(org.jenkinsci.remoting.RoleChecker checker) throws SecurityException
checkRoles
in interface org.jenkinsci.remoting.RoleSensitive
SecurityException
Copyright © 2016–2017. All rights reserved.