Let's say we have a procedure that we want to run. We create a pool of resources and assign the name of the pool to the resources parameter of the step. Further suppose that a job can leave a resource in an unusable state, for instance, not enough space to build, or NIS is turned off. We would somehow like to run a healthCheck script on the resources, and make sure that only resources that pass the healthCheck are candidates for allocation to the step. Is there a good way to do that?
Note, I created a script to assign the number of checks that fail to a property on the resource, and used the ordering filter to select the resource with the least number of failures. However, I don't want to run that script in broadcast mode against the pool, in case some of the resources in the pool are already in use. I want to run it only against the usable candidates, and only allocate a resource if the healthCheck returns 0 failures.
Answer by WCrosmun · Oct 22, 2015 at 03:21 PM
Answer by lrochette · Oct 23, 2015 at 11:37 PM
Which job get the resource when it's released? 1 Answer
How do I create a dynamic drop-down property for resource name? 2 Answers
Determine used Proxy Agent 1 Answer
Do remote ElectricCommander sites use an artifact repository proxy? 1 Answer
Running tests on a resource pool with ElectricCommander 0 Answers
Electric Cloud powers Continuous Delivery, helping organizations developing deliver better software faster by automating and accelerating build, test, and deployment processes at scale. Industry leaders like Qualcomm, SpaceX, Cisco, GE, Gap, and E*TRADE use Electric Cloud solutions to boost DevOps productivity and Agile throughput.