Make sure a connection to a Jenkins can be established before executing commands