Baseball Hall of Famer Pedro Martinez slammed Oakland Athletics pitcher Mike Fiers for blowing the whistle on the Houston Astros’ sign-stealing scandal, which led to the departures of three separate managers and a general manager.

Fiers, who pitched for the Astros during their 2017 World Series championship season, initially told The Athletic about the scheme the team had set up. Martinez blasted Fiers over the weekend at the Boston Red Sox’s fan fast, according to WEEI radio.

NEW YORK METS WORKING ON DEAL WITH LUIS ROJAS TO BECOME NEW MANAGER, GM SAYS

“If he was to do it when he was playing for the Houston Astros I would say Mike Fiers has guts. 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,” Martinez said. “You’re just a bad teammate.”

Martinez explained that Fiers broke the clubhouse rules and shouldn’t have come out about the scheme.

JOSÉ ALTUVE HAS WORLD SERIES IN MIND EVEN AFTER ASTROS' SIGN-STEALING SCANDAL

Aug 21, 2015; Houston, TX, USA; Houston Astros starting pitcher Mike Fiers (54) reacts after pitching a no-hitter against the Los Angeles Dodgers at Minute Maid Park. The Astros defeated the Dodgers 3-0. Mandatory Credit: Troy Taormina-USA TODAY Sports

Mike Fiers was on the Astros in 2017. (Troy Taormina-USA TODAY Sports)

“If you tell me that Mike Fiers is coming to my team and you already threw your team under the bus, the team that you used to play for … Now everybody knows you are going to have a whistle-blower in any other situation, too,” the retired World Series champion said. “Whatever happens in the clubhouse stays in the clubhouse and Fiers broke the rules. I agree with cleaning up the game. I agree [with] 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 whistle-blower.

“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 did have that rule.”

INDIANS' MIKE CLEVINGER EXPLAINS WHY ASTROS GOT OFF EASY FOR STEALING SIGNS: 'THEY SHOULD FEEL ASHAMED'

Former Astros manager Jeff Luhnow denied knowing of the team’s sign-stealing scheme in which a camera was set up in Minute Maid Park’s centerfield and a video feed was relayed to the clubhouse. A player or team employee would then bang on a garbage can to alert the batter of the incoming pitch.

CLICK HERE FOR MORE SPORTS COVERAGE ON FOXNEWS.COM

A.J. Hinch said that he didn’t do enough to stop it. Alex Cora and Carlos Beltran were implicated as the ringleaders of the operation. Beltran was the only player from the 2017 team named in Rob Manfred’s ruling last week.