Updated

Jason Kubel smacked the go-ahead RBI triple in the top of the 11th inning and the Arizona Diamondbacks topped the San Francisco Giants, 8-6, in the middle test of a three-game series at AT&T Park.

Facing George Kontos (1-1), Aaron Hill singled to begin the inning. After Justin Upton flied out, Javier Lopez was summoned from the Giants bullpen, but surrendered a rocket line drive to Kubel that went off the glove of right fielder Hunter Pence and rolled to the wall, which allowed Hill to score.

Paul Goldschmidt was intentionally walked and Miguel Montero gave Arizona an insurance run with an RBI single to account for the final margin.

Josh Collmenter (4-3) earned the win with two scoreless innings of relief.

"They got two guys on in the last inning there," Diamondbacks manager Kirk Gibson said. "Typical Colly (Collmenter), just got great composure, he has ice in his veins...it's just a good win for us."

Hill smoked a two-run home run while John McDonald ripped a two-run single for the Diamondbacks, who snapped a three-game skid. Goldschmidt and starter Ian Kennedy also drove in runs in the win.

Brandon Belt crushed a two-run homer, Pablo Sandoval drove in a pair, while Marco Scutaro and Pence knocked in runs for the Giants, who had their three- game winning streak snapped.

San Francisco struck first in its first at-bat courtesy of an RBI groundout by Sandoval, but the Diamondbacks tied it in the second inning when Kennedy knocked home Ryan Wheeler with a base hit into right.

Arizona put up three runs in the third inning to take a 4-1 lead. Hill got things started with a single and Upton followed with a base knock. After Kubel fanned, Goldschmidt ripped a double down into the right-field corner to score Hill. Montero was intentionally walked to load the bases with one out and McDonald came up with a clutch two-run single two batters later to widen the advantage.

Scutaro brought the Giants within 4-2 in the third when he smoked an RBI double into the left-center field gap, but again the D'Backs widended their lead in the fourth.

Adam Eaton ripped a one-out double into left field for his first major-league hit, and trotted the rest of the way around the diamond after Hill waited on a changeup and smashed it over the wall in left-center field for a 6-2 lead.

San Francisco made it a one-run game in the sixth. Sandoval started the frame with a double down the line in left field and scored on a double by Pence. Belt followed and yanked a fastball from Kennedy deep into McCovey Cove for a 6-5 contest.

Angel Pagan began the San Francisco seventh with a double and came around to score on a clutch base hit into left field by Sandoval, tying the game at 6-6.

"We got down and they came back, couldn't quite finish the deal," Giants manager Bruce Bochy said.

Game Notes

Prior to Tuesday's game, the Diamondbacks recalled outfielder Eaton from Triple-A Reno and transferred catcher Henry Blanco to the 60-day disabled list ... Arizona fell to 1-6 in its last seven games against the Giants ... Prior to the game, the Giants recalled pitchers Dan Otero and Dan Runzler from Triple-A Fresno ... San Francisco went 4-for-15 with runners in scoring position and left nine on base ... Giants starter Ryan Vogelsong allowed six runs on nine hits in 3 1/3 innings, while Kennedy gave up five runs on seven hits over 5 2/3 innings.