A rioter who attacked a police station with metal poles during disorder has been jailed for three years and four months.