createResourcePool

On this page
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
Array<Unknown>optional
List of resources to add/remove from the pool.
resourcePoolDisabled
Booleanoptional
True means the resourcePool will not be allocated to job steps.

Usage

Groovy

import com.electriccloud.client.groovy.ElectricFlow import com.electriccloud.client.groovy.models.* ElectricFlow ef = new ElectricFlow() def result = ef.createResourcePool( resourcePoolName: "test-resourcePoolName" /* optional arguments */ )