KBEC-00149 - Dynamically passing a resource to a step

Article ID:360032831132
1 minute readKnowledge base
On this page

Summary

Your first step is assigned a resource out of a pool and you want to pass the resource ensuring subsequent steps run on the same resource as the first step, not just some arbitary resource out of the pool.

Solution

You can track the resource in a property attached to the parent step, /myParent, or on the job, /myJob and reference the resource on subseqent steps.

  1. In the first step, record the pool-assigned resource in a property.

     ectool setProperty /myParent/whichResource $[/myResource/resourceName]
  2. In the subsequent steps, in the resource, reference the property.

     $[/myParent/whichResource]