I’m using a PathExists properly collector to track agents that have a particular path present. The agents properties seem to work, the value is True when I view the agent.
As there is no boolean project variable data type, I tried Text and Numeric and in both cases when I have an Agent Requirement for a stage based on comparing a project variable with the property provided by 'Path Exists Plugin" the build pauses waiting for agent and shows that the requirement
“could not be evaluated as [project var] and [agent property] are different types.”
Any fix/workaround? I checked .484 notes and didn’t see anything relevant.
I just tried $Utils.GetBoolean([my project variable])$ compared to the agent property, and that errors in the same way. So it’s acting like the agent property isn’t a boolean, string or number…
Also tried .ToString().ToUpper() on the agent property, that doesn’t work either.
FYI: I worked about this by adding a registry value and corresponding property collector. Had to set this on each agent so I can tell whether the software in question is installed or not. It works, but seems like much more hassle.
I verified that I have 2 agents with Vendor.RemObjects.PathExists as True and one agent with False. Build ends up stuck with this message in the details:
Change $Agent.Vendor.RemObjects.PathExists$ to $Agent.Vendor.RemObjects.PathExists.Exists$.
$Agent.Vendor.RemObjects.PathExists$ is an object and does not have a value on its own. You need to specify the .Exists property.
We can see that this is easy to miss and, as this object only has one property, we will make the Exists property the default if no property is provided. We’ll do this for the next version.