Added hooks for locating Jenkins agents to Jenkins class