Hello,
I want to set the execute condition of a step using Groovy so that the step is performed only if the node is included in a specific resource.
For example:
If there is a resource "agent_apps" and it includes a node "app1", I want the step to return true if the node assigned to the current step is included in the "agent_apps" resource, and false otherwise.
groovy:
import com.pmease.quickbuild.grid.GridNode
def step_node = step.getNode()
def step_hostname = step_node.getHostName()
Is there a way to check if "step_hostname" is included in "agent_apps"
- solved #4
- replies 3
- views 41
- stars 0
-