I know a step's path and that it does not belong to the current configuration. Now I want to get the path's step object.
In order to call build.getStep(path)
I would need its build object first. Is there a way to do that?
This does not work, since I do not know the configuration's path. This is how I get the steps:
name = node.getHostName();
port = node.getPort();
runningSteps = system.buildEngine.getRunningSteps(name + ":" + port);
for (RunningStepInfo stepInfo : runningSteps) {
stepPath = stepInfo.getStepPath();
[...]
}
How I understand this, the step paths do not contain the configuration path, because when I log them, they look like this:
master>Step
stepInfo.configurationId will return identifier of the configuration, and you may get the configuration path with below code:
system.configurationManager.load(stepInfo.configurationId).pathName