package org.jenkinsci.plugins.p4.groovy; import hudson.FilePath; import hudson.model.TaskListener; import jenkins.security.MasterToSlaveCallable; import org.jenkinsci.plugins.p4.workspace.Workspace; import java.io.Serializable; public class GetP4Task extends MasterToSlaveCallable<P4Groovy, InterruptedException> implements Serializable { private static final long serialVersionUID = 1L; private final String credential; private final Workspace workspace; private final FilePath buildWorkspace; private final TaskListener listener; public GetP4Task(String credential, Workspace workspace, FilePath buildWorkspace, TaskListener listener) { this.credential = credential; this.workspace = workspace; this.listener = listener; this.buildWorkspace = buildWorkspace; } @Override public P4Groovy call() throws InterruptedException { P4Groovy p4Groovy = new P4Groovy(credential, listener, workspace, buildWorkspace); return p4Groovy; } }
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#2 | 23685 | Paul Allen | Copy main -> dev | ||
#1 | 20641 | Paul Allen | Copy main -> dev (jenkinsci/p4-plugin) | ||
//guest/perforce_software/p4jenkins/main/src/main/java/org/jenkinsci/plugins/p4/groovy/GetP4Task.java | |||||
#2 | 20418 | Paul Allen | Replace FileCallable and checkRoles with MasterToSlaveCallable. | ||
#1 | 20308 | Paul Allen |
P4Groovy (experimental) Get a P4 object in groovy. Supporting basic functions: ’run’ (to run perforce commands), ‘fetch’ and ‘save’ (to access Perforce specs). |