Package org.jenkinsci.plugins.p4.tasks
Class WhereTask
- java.lang.Object
-
- org.jenkinsci.plugins.p4.tasks.AbstractTask
-
- org.jenkinsci.plugins.p4.tasks.WhereTask
-
- All Implemented Interfaces:
FilePath.FileCallable<String>,Serializable,org.jenkinsci.remoting.RoleSensitive
public class WhereTask extends AbstractTask implements FilePath.FileCallable<String>, Serializable
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description WhereTask(String credential, Run run, TaskListener listener, String script)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcheckRoles(org.jenkinsci.remoting.RoleChecker checker)Stringinvoke(File workspace, hudson.remoting.VirtualChannel channel)Invoke sync on build node (controller or remote node).Objecttask(ClientHelper p4)Implements the Perforce task to retry if necessary-
Methods inherited from class org.jenkinsci.plugins.p4.tasks.AbstractTask
checkConnection, getClientName, getCredential, getListener, getSyncID, getWorkspace, setEnvironment, setup, setWorkspace, tryTask
-
-
-
-
Constructor Detail
-
WhereTask
public WhereTask(String credential, Run run, TaskListener listener, String script)
-
-
Method Detail
-
invoke
public String invoke(File workspace, hudson.remoting.VirtualChannel channel) throws IOException
Invoke sync on build node (controller or remote node).- Specified by:
invokein interfaceFilePath.FileCallable<String>- Returns:
- true if updated, false if no change.
- Throws:
IOException
-
checkRoles
public void checkRoles(org.jenkinsci.remoting.RoleChecker checker) throws SecurityException- Specified by:
checkRolesin interfaceorg.jenkinsci.remoting.RoleSensitive- Throws:
SecurityException
-
task
public Object task(ClientHelper p4) throws Exception
Description copied from class:AbstractTaskImplements the Perforce task to retry if necessary- Specified by:
taskin classAbstractTask- Parameters:
p4- Perforce connection helper- Returns:
- Task object
- Throws:
Exception- push up stack
-
-