[FIXED JENKINS-22146] now preventing infinite recursions when building pipelines with circular/diamond-shaped project dependencies.