Tino Martinez was in the dugout, expecting to celebrate a Yankees win with Derek Jeter when David Robertson blew the lead in the top of the ninth.

And then he watched as his former teammate did it again, with Jeter delivering the game-winner in the bottom of the inning of the Yankees’ 6-5 win over Baltimore in Jeter’s finale in The Bronx.

“I’m sure people said throughout the day that Jeter would get the game-winning hit,” Martinez said. “But for him to get up in that situation to end the game like that were slim-and-none. It sums up his whole career.”

Just about everyone who was at Yankee Stadium seemed sure he would come through once the inning developed the way it did.

“You just knew they were going to win when he came up,” said Andy Pettitte.

“Derek’s always been able to dial up what the needs of the team are and they needed a base hit to right and he got it,” said his former and current Orioles’ manager Buck Showalter.

CC Sabathia was even more certain.

“You kind of knew it was going to happen,” Sabathia said. “It sounds weird, but you expect it out of him. I don’t think anyone in the park didn’t realize he was coming up third [in the ninth]. It just felt like he was going to walk off with it and he did.”

It’s not the first time Sabathia has seen Jeter’s heroics, but even he was somewhat stunned by the way it all turned out.

“It’s crazy,” Sabathia said. “If it was a movie, I’d get up, walk out and say, ‘There’s no chance.’”

Especially considering Jeter himself admitted he wasn’t himself on Thursday — something Sabathia noticed before the game.

“He seemed nervous,” Sabathia said. “You could tell. He was all over the place. He actually almost walked out [to the field] without his cleats on. I’ve never seen him do that. Of course he should be, right? It’s his last game [at Yankee Stadium].”

And he made it one to remember.

“[He] gave everybody what they wanted,” Brett Gardner said. “It was almost meant to be. … That’s how you draw it up — a base hit to right field and we had a lot of speed at second base [in Antoan Richardson]. Thank goodness.”

Even Evan Meek, who gave up the winning hit, seemed happy to be there.

“Being on the mound in that situation, you have to take yourself out of the moment and focus. I looked in and said, ‘Let’s do this.’ I threw him a cutter away, and that was it.

“I could be upset about it, but you’re better off just understanding how important a day it was for baseball, for him. Obviously, you don’t want to be the guy that gave up the game. I could be upset or I can embrace it. It was an honor and privilege for me to share the field with him.”