FilePath workingDirectory = workingDirectory(workspace);
final EnvVars environment = project instanceof AbstractProject ? GitUtils.getPollEnvironment((AbstractProject) project, workspace, launcher, listener) : project.getEnvironment(node, listener); FilePath workingDirectory = workingDirectory(project,workspace,environment,listener);
/** * Allows {@link Builder}s and {@link Publisher}s to access a configured {@link GitClient} object to * perform additional git operations. * @param listener build log * @param environment environment variables to be used * @param build run context for the returned GitClient * @param workspace client workspace * @return git client for additional git operations * @throws IOException on input or output error * @throws InterruptedException when interrupted */ @NonNull public GitClient createClient(TaskListener listener, EnvVars environment, Run<?,?> build, FilePath workspace) throws IOException, InterruptedException { FilePath ws = workingDirectory(build.getParent(), workspace, environment, listener); /* ws will be null if the node which ran the build is offline */ if (ws != null) { ws.mkdirs(); // ensure it exists } return createClient(listener,environment, build.getParent(), GitUtils.workspaceToNode(workspace), ws); }
FilePath workingDirectory = workingDirectory(workspace);
boolean hasChanges = false; for (Map.Entry<String, List<RemoteConfig>> entry : repoMap.entrySet()) { FilePath workingDirectory = workingDirectory(workspace);
listener.getLogger().println("Using strategy: " + buildChooser.getDisplayName()); final FilePath workingDirectory = workingDirectory(workspace);
final FilePath workingDirectory = gitSCM.workingDirectory(workspacePath);
final FilePath workingDirectory = gitSCM.workingDirectory(workspacePath);