CJ Donaldson had two short rushing touchdowns and West Virginia became bowl eligible with a 31-21 victory over UCF.