Search in sources :

Example 1 with ExternalNodeConfig

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();
}
Also used : Slave(org.jenkinsci.test.acceptance.po.Slave) SlaveController(org.jenkinsci.test.acceptance.slave.SlaveController) LocalSlaveController(org.jenkinsci.test.acceptance.slave.LocalSlaveController) LocalSlaveController(org.jenkinsci.test.acceptance.slave.LocalSlaveController) ExternalNodeConfig(org.jenkinsci.test.acceptance.plugins.external_workspace_manager.ExternalNodeConfig)

Aggregations

ExternalNodeConfig (org.jenkinsci.test.acceptance.plugins.external_workspace_manager.ExternalNodeConfig)1 Slave (org.jenkinsci.test.acceptance.po.Slave)1 LocalSlaveController (org.jenkinsci.test.acceptance.slave.LocalSlaveController)1 SlaveController (org.jenkinsci.test.acceptance.slave.SlaveController)1