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