SARASOTA, Fla. (AP) Trying to win a job as the New York Yankees' fifth starter, Ivan Nova allowed three home runs Friday and the Baltimore Orioles beat the Yankees 11-10 in 10 innings.

Nova is competing against CC Sabathia for the final spot in the rotation. He pitched 4 2-3 innings, allowing six runs - five earned- on five hits.

Mark Trumbo hit his fifth home run, a solo shot. Caleb Joseph and J.J. Hardy had two-run homers. It was Joseph's first and Hardy's second.

More from FoxSports

Manny Machado hit his third home run in the seventh and Nolan Reimold made it 8-8 in the ninth with his first home run.

Chris Tillman allowed five runs on six hits in four innings. Chris Denorfia hit a three-run homer in the second inning.

The Orioles scored three runs in the bottom of the 10th for the victory.