adding a check to see if jenkins is using authentication and disabling the private key if it is not