The 48-year-old, who played Ray Mullan on the ITV1 soap in 2001 and 2002, was arrested and charged in August after 25 plants worth up to £24,800 were found at his rented house in Walton, Liverpool.
Gubbins had claimed that he was growing the plants for his own personal use and not for commercial gain. However, Judge David Fletcher yesterday (September 19) rejected this claim at the Liverpool North Community Justice Centre.
The ex-soap star was handed a 12-month jail term which was suspended for two years. He must also wear an electronic tag for eight weeks and complete 160 hours of community service, the Liverpool Echo reports.
Judge Fletcher told the court: "I'm afraid I am incredulous that he did not work out the value of the yield and the cost of cultivation. You are an intelligent man.
"The prosecution have proved their case that he was cultivating cannabis on a commercial basis."
Along with Emmerdale, Gubbins has previously had small roles on Doctors, The Bill, Casualty and Waterloo Road.