createResourcePool

Back to index

Summary

Creates a new pool for resources.
resourcePoolName
Stringrequired
Name for the resource pool; must be unique among all resource pools.
autoDelete
Booleanoptional
If true, the pool is deleted when the last resource is deleted.
description
Stringoptional
Comment text describing this object that is not interpreted at all by CloudBees CD/RO.
orderingFilter
Stringoptional
JavaScript fragment that returns custom ordering of resources in a pool.
resourceNames
Collectionoptional
List of resources to add/remove from the pool.
resourcePoolDisabled
Booleanoptional
True means the resourcePool will not be allocated to job steps.

Usage

Perl

$cmdr->createResourcePool( "test-resourcePoolName" # resourcePoolName # optionals );

ectool

ectool createResourcePool \ "test-resourcePoolName" `# resourcePoolName` \ # optionals

Examples

Perl

$cmdr->createResourcePool("Test Machines", {resourceName => ["Machine1", "Machine2"]});

ectool

ectool createResourcePool "Test Machines" --resourceNames "Machine1" "Machine2"