I have take line loose a couple times to blow it out but the condensation keeps coming back and causing the pilot light to go out...it does stay lit for a while after I clear the condensation...maybe a day or so
To me it sounds like you need a drip leg. A drip leg is usually installed after the local shutoff valve it is a simple T with a 6" or longer nipple that is capped pointing down. With a drip leg the moisture and some rust fall into the nipple, I have had a home that I had to clean the drip leg every year, others never needed cleaning 1 drop of water in your gas valve or pilot is enough to cause problems and a 6" drip leg is usually enough for most homes.
The condensation likely appears after the flame goes out. Burning of gas produces water.
Every few years with a gas water heater it's necessary to replace the thermocouple. The thermocouple is heated by the gas flame which produces a small electrical signal. If that signal is lost the heater goes out.