Sen. Ted Cruz Rafael (Ted) Edward CruzThe Hill's Morning Report - Sponsored by Facebook - Washington on edge amid SCOTUS vacancy Murkowski: Supreme Court nominee should not be taken up before election Battle lines drawn on precedent in Supreme Court fight MORE (R-Texas) is warning his GOP colleagues to stop fighting with President Trump and focus on passing the party's agenda.

"It's like you’re back in junior high. ... We've got a job to do, damn it, and so all of this nonsense, I got nothing to say on it. Everyone shut up and do your job, is my view," Cruz told conservative radio host Mark Davis on Wednesday.

Cruz was asked about Republican Sens. Bob Corker Robert (Bob) Phillips CorkerHas Congress captured Russia policy? Tennessee primary battle turns nasty for Republicans Cheney clashes with Trump MORE (Tenn.) and Jeff Flake Jeffrey (Jeff) Lane FlakeJeff Flake: Republicans 'should hold the same position' on SCOTUS vacancy as 2016 Republican former Michigan governor says he's voting for Biden Maybe they just don't like cowboys: The president is successful, some just don't like his style MORE (Ariz.), who offered blistering criticism of Trump on Tuesday, but he didn't directly mention the two in his response.

ADVERTISEMENT

He added that Americans are "frustrated" by Republicans’ inability to make good on years-long campaign promises.

"Well I think it's unfortunate the nastiness that pervades Washington now and political battles of personality that consume seemingly every minute of the media attention and an awful lot of time and energy here in this town," he said.

Trump and his White House have been locked in a fight with Corker and Flake, both of whom will not seek reelection in 2018.

Flake used a floor speech on Tuesday announcing his retirement to take aim at both the president and his own party. Meanwhile, Corker told CNN that Trump is “debasing” the country, isn't a role model for children and that he regrets supporting him.

Cruz, who ran for president last year, was a frequent target of Trump's during the Republican primary and did not endorse Trump during his speech at the Republican National Convention.

But he's aligned himself more closely with leadership on the GOP ObamaCare repeal effort, including taking part in a working group convened by Senate Majority Leader Mitch McConnell Addison (Mitch) Mitchell McConnellGraham: GOP will confirm Trump's Supreme Court nominee before the election Trump puts Supreme Court fight at center of Ohio rally The Memo: Dems face balancing act on SCOTUS fight MORE (R-Ky.).

Discussing the GOP health-care effort, he argued that it was moderates, not conservatives, who had shelved the effort.

"Alright big boys, we got a majority and you know who it is who is screwing up governing? It's the so-called elder statesman moderates," he said.