Only cache jenkins server version when it's a valid jenkins server