2008 jeep won't start-occasionally

I have a 2006 Jeep Grand Cherakee 68,000 miles. For the last 3 days it won’t start. When I turn the key all the lights, gauges and air will come on. When I go to start it, all I get is click, click, click, click. When I connect jumper cables it starts right up. I had the battery, alternator and starter checked and they are all working good. Please help with any ideas on what it may be.

Sounds like it could be a bad connection. Clean the battery terminals & see what happens.