Hi
We have a configuration that accepts a variable with a name (lets call is X). This name may be resource name or node name.
We are trying to schedule a build with one of 2 conditions:
- Node with resource == X.getValue()
OR - Node with hostName == X.getValue()
The problem is, in case we use the node name and there is no resource with this value, the first condition throws exception. We must use an existing resource name although the second condition is valid.
Any idea how we can overcome this issue?
Thanks in advance