Your browser was unable to load all of the resources. They may have been blocked by your firewall, proxy or browser configuration.
Press Ctrl+F5 or Ctrl+Shift+R to have your browser try again.

Create grid resource via script #3477

robinshen ADMIN ·
import com.pmease.quickbuild.entitymanager.ResourceManager;
import com.pmease.quickbuild.model.Resource;
import com.pmease.quickbuild.resource.*;
import com.pmease.quickbuild.resource.nodeselection.*;
import com.pmease.quickbuild.grid.*;

def resource = new Resource();
resource.name = "name of resource";
def resourceProvider = new ResourceProvider();
resourceProvider.nodeSelection = new AnyBuildAgentSelection();
resourceProvider.resourceCount = 1;
resource.providers.add(resourceProvider);
ResourceManager.instance.save(resource, null);
  • replies 0
  • views 2424
  • stars 1