A former basketball coach at two schools, including the Albert Einstein Academy in Santa Clarita, pleaded no contest today to sexually molesting six boys he met while on the job. Randolph Jackson, 29, entered his plea just as jury selection for his trial was set to begin, according to the District Attorney’s Office.

Jackson entered his plea to one felony count each of continuous sexual abuse, oral copulation of a person under 16 and committing a lewd act on a child, plus four misdemeanor counts of indecent exposure and two misdemeanor counts of child molesting. Prosecutors said the former coach is set to be sentenced June 1 to 17 years and eight months in prison and be ordered to register as a sex offender for life.

Jackson’s plea involved six boys between the ages of 13 and 17, who were molested between November 2010 and January 2015. Prosecutors said he met the victims while working as a basketball coach at Albert Einstein Academy, a public charter school, and another school. The District Attorney’s Office declined to name the second school, citing a wish to protect the victims’ identities. Jackson had been suspended as a coach at the academy prior to his arrest on Feb. 18, 2015, in Washington, D.C.