President Trump’s chief of staff said Thursday that he had no intention of quitting and did not believe he was going to be fired — even while joking that, “It’s not the best job I’ve ever had.”

“I’m not quitting today . . . and I just talked to the president, I don’t think I’m being fired today,” said John Kelly, a former four-star Marine general, during the daily White House press briefing.

“And I’m not so frustrated in this job that I’m thinking of leaving. I would tell you this is the hardest job I have ever had. This is, in my view, the most important job I have ever had,” he said, denying reports that he was on thin ice.

But that doesn’t mean he’s loving every minute in the West Wing pressure cooker.

“I would offer, though, it is not the best job I ever had. The best job I ever had, as I said, is when I was an enlisted Marine sergeant infantryman. So unless things change, I’m not quitting, I’m not getting fired,” Kelly said.

Kelly also defended Trump’s Twitter attacks on GOP Sen. Bob Corker, whom the president dubbed “Liddle’ Bob” after Corker suggested that the White House was in chaos.

“Let me just say that when members of Congress say things that are unfair or critical, the president has a right to defend himself,” Kelly said.