private FilePathPickle(FilePath v) { slave = FilePathUtils.getNodeName(v); path = v.getRemote(); }
private void onCheckout(SCM scm, FilePath workspace, TaskListener listener, @CheckForNull File changelogFile, @CheckForNull SCMRevisionState pollingBaseline) throws Exception { if (changelogFile != null && changelogFile.isFile()) { ChangeLogSet<?> cls = scm.createChangeLogParser().parse(this, scm.getEffectiveBrowser(), changelogFile); if (!cls.isEmptySet()) { getChangeSets().add(cls); } for (SCMListener l : SCMListener.all()) { l.onChangeLogParsed(this, scm, listener, cls); } } checkouts(listener).add(new SCMCheckout(scm, FilePathUtils.getNodeName(workspace), workspace.getRemote(), changelogFile, pollingBaseline)); }
@Override public boolean start() throws Exception { returnStdout = step.returnStdout; encoding = step.encoding; returnStatus = step.returnStatus; StepContext context = getContext(); ws = context.get(FilePath.class); node = FilePathUtils.getNodeName(ws); DurableTask durableTask = step.task(); if (returnStdout) { durableTask.captureOutput(); } controller = durableTask.launch(context.get(EnvVars.class), ws, context.get(Launcher.class), context.get(TaskListener.class)); this.remote = ws.getRemote(); setupTimer(); return false; }