Around 3,000 former prisoners were given the option to trade jail time for a role in the Ukrainian army as the war continues.