You can update Samsung Galaxy Ace S5830 to jelly bean 4.2.2 with CM 10.1 Nightlies Custom ROM . It's only possible when you'll follow the steps described here.There is no official updates announced for Ace due to its hardware limitations and hence the custom ROM are the only way to power up your device or say to update your device.
The first thing to do is to backup your phone data because the device may crash during availing the process ensure that your device is properly backed up.
Several precautions should be taken care of before updating your phone that are ensure you have a USB cable,uninstall the antivirus on your phone,charge your phone's battery.
Stepsto update your Samsung Ace S5830:-
1.Go to the link given below and download the firmware .
2. Save that to your computer.
3. Connect your phone.
4.Copy the firmware on your device SD card.
5. Disconnect the USB cable.
6.Turn off your handset and reboot it into recovery mode.
7. For recovery mode press the power,volume and the home button simultaneously for few seconds.
8.wipe the system and be careful that you had chosen the right wipe option that is "wipe data factory reset", "wipe cache partition" and "wipe dalvik cache".
9.Return to main menu and select install zip from card followed by choose zip from card.
10.select the update file and start the operation.
11.In the end select go back button and reboot you system now.
12.Your device has been updated from Android 2.2.1 to Android 4.2.2 Jelly Bean OS .