use of org.jenkinsci.test.acceptance.plugins.external_workspace_manager.ExternalNodeConfig in project acceptance-test-harness by jenkinsci.
the class ExternalWorkspaceManagerPluginTest method setUpNode.
private void setUpNode(String label, String fakeMountingPoint) throws ExecutionException, InterruptedException {
SlaveController controller = new LocalSlaveController();
Slave linuxSlave = controller.install(jenkins).get();
linuxSlave.configure();
linuxSlave.setLabels(label);
ExternalNodeConfig nodeConfig = new ExternalNodeConfig(linuxSlave);
nodeConfig.setConfig(DISK_POOL_ID, DISK_ONE, DISK_TWO, fakeMountingPoint);
linuxSlave.save();
}
Aggregations