Pedro Martinez is on Jessica Mendoza’s side.

The Hall of Fame hurler said recently that Mike Fiers was in the wrong for the way he exposed the Astros’ sign-stealing scandal, which came in a story in The Athletic that ran after this season.

“If he was to do it when he was playing for the Houston Astros, I would say Mike Fiers has guts,” Martinez told WEEI. “But to go and do it after you leave the Houston Astros because they don’t have you anymore, that doesn’t show me anything. You’re just a bad teammate.”

Fiers pitched three seasons with the Astros, the last of which was 2017. Fiers detailed the team’s sign-stealing plan from that World Series season, which led to an MLB investigation that ended with Astros GM Jeff Luhnow and manager A.J. Hinch being suspended for a year, then getting fired by the team. Martinez’s Red Sox, who are now being investigated for any misdeeds they committed during their 2018 championship season, then fired manager Alex Cora for his role in the scandal as Astros bench coach in 2017.

Most have applauded Fiers, a starting pitcher who has been on the Tigers and A’s since leaving Houston, for speaking out on the issue. However, Mendoza, an ESPN analyst and Mets adviser, questioned whether Fiers was breaking the clubhouse code.

Martinez, now an MLB Network analyst, is certain that he did.

“Whatever happens in the clubhouse stays in the clubhouse, and Fiers broke the rules,” Martinez said. “I agree with cleaning up the game. I agree that the fact that the Commissioner is taking a hard hand on this, but at the same time players should not be the one dropping the whistleblower.

“If you have integrity, you find ways to tell everybody in the clubhouse, ‘Hey, we might get in trouble for this. I don’t want to be part of this.’ You call your GM. You tell him. Or you call anybody you can or MLB or someone and say, ‘I don’t want to be part of this.’ Or you tell the team, ‘Get me out of here, I don’t want to be part of this.’ Then you show me something. But if you leave Houston, and most likely you didn’t agree with Houston when you left, and then you go and drop the entire team under the bus, I don’t trust you. I won’t trust you because we did have that rule.”