public class WhereTask extends AbstractTask implements hudson.FilePath.FileCallable<String>, Serializable
Constructor and Description |
---|
WhereTask(String credential,
hudson.model.Run run,
hudson.model.TaskListener listener,
String script) |
Modifier and Type | Method and Description |
---|---|
void |
checkRoles(org.jenkinsci.remoting.RoleChecker checker) |
String |
invoke(File workspace,
hudson.remoting.VirtualChannel channel)
Invoke sync on build node (master or remote node).
|
Object |
task(ClientHelper p4)
Implements the Perforce task to retry if necessary
|
checkConnection, getClientName, getCredential, getListener, getSyncID, getWorkspace, setEnvironment, setWorkspace, tryTask
public String invoke(File workspace, hudson.remoting.VirtualChannel channel) throws IOException
invoke
in interface hudson.FilePath.FileCallable<String>
IOException
public void checkRoles(org.jenkinsci.remoting.RoleChecker checker) throws SecurityException
checkRoles
in interface org.jenkinsci.remoting.RoleSensitive
SecurityException
public Object task(ClientHelper p4) throws Exception
AbstractTask
task
in class AbstractTask
p4
- Perforce connection helperException
- push up stackCopyright © 2016–2021. All rights reserved.