Ex-confinement officer will do jail time