public class P4GroovyTask extends AbstractTask implements hudson.FilePath.FileCallable<Map<String,Object>[]>, Serializable
Modifier | Constructor and Description |
---|---|
protected |
P4GroovyTask(P4BaseCredentials credential,
hudson.model.TaskListener listener,
String cmd,
String... args) |
protected |
P4GroovyTask(P4BaseCredentials credential,
hudson.model.TaskListener listener,
String cmd,
String[] args,
Map<String,Object> spec) |
Modifier and Type | Method and Description |
---|---|
void |
checkRoles(org.jenkinsci.remoting.RoleChecker checker) |
Map<String,Object>[] |
invoke(File workspace,
hudson.remoting.VirtualChannel channel) |
Object |
task(ClientHelper p4)
Implements the Perforce task to retry if necessary
|
checkConnection, getClientName, getCredential, getListener, getSyncID, getWorkspace, setEnvironment, setWorkspace, tryTask
protected P4GroovyTask(P4BaseCredentials credential, hudson.model.TaskListener listener, String cmd, String[] args, Map<String,Object> spec)
protected P4GroovyTask(P4BaseCredentials credential, hudson.model.TaskListener listener, String cmd, String... args)
public Map<String,Object>[] invoke(File workspace, hudson.remoting.VirtualChannel channel) throws IOException
invoke
in interface hudson.FilePath.FileCallable<Map<String,Object>[]>
IOException
public Object task(ClientHelper p4) throws Exception
AbstractTask
task
in class AbstractTask
p4
- Perforce connection helperException
- push up stackpublic void checkRoles(org.jenkinsci.remoting.RoleChecker checker) throws SecurityException
checkRoles
in interface org.jenkinsci.remoting.RoleSensitive
SecurityException
Copyright © 2016–2021. All rights reserved.