for [COOK-2684] - added check for HTTPForbidden when restarting jenkins ...

... in case private auth is being used, this prevents endless loop