/** * Root directory on this agent where all the job workspaces are laid out. * @return * null if not connected. */ public @CheckForNull FilePath getWorkspaceRoot() { FilePath r = getRootPath(); if(r==null) return null; return r.child(WORKSPACE_ROOT); }
/** * Root directory on this slave where all the job workspaces are laid out. * * @return null if not connected. */ public FilePath getWorkspaceRoot() { FilePath r = getRootPath(); if (r == null) { return null; } return r.child(WORKSPACE_ROOT); }
/** * Root directory on this agent where all the job workspaces are laid out. * @return * null if not connected. */ public @CheckForNull FilePath getWorkspaceRoot() { FilePath r = getRootPath(); if(r==null) return null; return r.child(WORKSPACE_ROOT); }
/** * Root directory on this slave where all the job workspaces are laid out. * @return * null if not connected. */ public FilePath getWorkspaceRoot() { FilePath r = getRootPath(); if(r==null) return null; return r.child(WORKSPACE_ROOT); }
/** * Root directory on this slave where all the job workspaces are laid out. * @return * null if not connected. */ public FilePath getWorkspaceRoot() { FilePath r = getRootPath(); if(r==null) return null; return r.child(WORKSPACE_ROOT); }
/** * Root directory on this slave where all the job workspaces are laid out. * @return * null if not connected. */ public FilePath getWorkspaceRoot() { FilePath r = getRootPath(); if(r==null) return null; return r.child(WORKSPACE_ROOT); }
public InstallerGui(SlaveInstaller installer, SlaveComputer sc) { this.installer = installer; final Slave node = sc.getNode(); if (node == null) { throw new IllegalStateException("The configration has change and the node for computer " + sc.getName() + " is removed"); } // TODO: missing null check this.slaveRoot = node.getRootPath(); this.jnlpMac = sc.getJnlpMac(); }
@Test public void smokes() throws Exception { MercurialContainer container = docker.create(); Slave slave = container.createSlave(r); TaskListener listener = StreamTaskListener.fromStdout(); for (MercurialContainer.Version v : MercurialContainer.Version.values()) { HgExe hgExe = new HgExe(container.createInstallation(r, v, false, false, false, "", slave), null, slave.createLauncher(listener), slave, listener, new EnvVars()); assertThat(hgExe.popen(slave.getRootPath(), listener, true, new ArgumentListBuilder("version")), containsString("Mercurial Distributed SCM (version " + v.exactVersion + ")")); } }
@Before public void setUp() throws Exception { MercurialContainer container = useSlave ? docker.create() : null; slave = useSlave ? container.createSlave(j) : null; inst = mercurialInstallationFactory.create(j, container, slave, mercurialVersion); if (inst != null && inst.isUseCaches() || slave == null) { // Set up test repository on master, if we have hg installed locally. repo = new FilePath(tmp.getRoot()); } else { // Set up test repository on agent. repo = slave.getRootPath().child("repo"); repo.mkdirs(); m.withNode(slave); m.withInstallation(inst); } }
assertNotNull(inst); m.withInstallation(inst); FilePath sampleRepo = slave.getRootPath().child("sampleRepo"); sampleRepo.mkdirs(); m.hg(sampleRepo, "init"); m.touchAndCommit(sampleRepo, "file"); FilePath otherRepo = slave.getRootPath().child("otherRepo"); otherRepo.mkdirs(); m.hg(otherRepo, "init");
assertNotNull(inst); m.withInstallation(inst); FilePath sampleRepo = slave.getRootPath().child("sampleRepo"); sampleRepo.mkdirs(); m.hg(sampleRepo, "init");