NEW YORK — Adam Jones hit a two-run homer against Mariano Rivera in the ninth inning, and the Baltimore Orioles beat the Yankees, 2-1, on Sunday, ending the Yankees’ longest winning streak of the season at six games.

A healthy Hiroki Kuroda pitched seven innings of three-hit ball for the Yankees, but they were unable to finish off a three-game sweep after Baltimore took all three games from them at Camden Yards last weekend.

David Robertson worked a 1-2-3 eighth, and Rivera (1-2) entered looking to reach 30 saves for the 15th time, which would break a tie with Trevor Hoffman for the major league record.