Package org.jenkinsci.plugins.p4.groovy
Class P4GroovyTask
java.lang.Object
org.jenkinsci.plugins.p4.tasks.AbstractTask
org.jenkinsci.plugins.p4.groovy.P4GroovyTask
- All Implemented Interfaces:
FilePath.FileCallable<Map<String,,Object>[]> Serializable,org.jenkinsci.remoting.RoleSensitive
public class P4GroovyTask
extends AbstractTask
implements FilePath.FileCallable<Map<String,Object>[]>, Serializable
- See Also:
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedP4GroovyTask(P4BaseCredentials credential, TaskListener listener, String cmd, String... args) protectedP4GroovyTask(P4BaseCredentials credential, TaskListener listener, String cmd, String[] args, Map<String, Object> spec) -
Method Summary
Modifier and TypeMethodDescriptionvoidcheckRoles(org.jenkinsci.remoting.RoleChecker checker) task(ClientHelper p4) Implements the P4 task to retry if necessaryMethods inherited from class org.jenkinsci.plugins.p4.tasks.AbstractTask
checkConnection, getClientName, getCredential, getListener, getSyncID, getWorkspace, setEnvironment, setup, setWorkspace, tryTask
-
Constructor Details
-
P4GroovyTask
protected P4GroovyTask(P4BaseCredentials credential, TaskListener listener, String cmd, String[] args, Map<String, Object> spec) -
P4GroovyTask
protected P4GroovyTask(P4BaseCredentials credential, TaskListener listener, String cmd, String... args)
-
-
Method Details
-
invoke
public Map<String,Object>[] invoke(File workspace, hudson.remoting.VirtualChannel channel) throws IOException - Specified by:
invokein interfaceFilePath.FileCallable<Map<String,Object>[]> - Throws:
IOException
-
task
Description copied from class:AbstractTaskImplements the P4 task to retry if necessary- Specified by:
taskin classAbstractTask- Parameters:
p4- P4 connection helper- Returns:
- Task object
- Throws:
Exception- push up stack
-
checkRoles
- Specified by:
checkRolesin interfaceorg.jenkinsci.remoting.RoleSensitive- Throws:
SecurityException
-