A Ukrainian man who had served with Russian forces in the  Donetsk People's Republic and was discharged has been sentenced for desertion.