SAN FRANCISCO — Longtime Giants ace Madison Bumgarner has reached agreement with the Arizona Diamondbacks on an $85 million, five-year contract that ends his run of success in San Francisco. The Post’s Joel Sherman confirmed the deal. Bumgarner pitched 11 seasons for the Giants but knew his time likely had ended.