Fixed issue with Jenkins CLI public key authentication
fixed formatting
Merge in api realm changes.