This phrase derives from the slang term 'all is bob', meaning 'all is well'. That term is listed in Captain Francis Grose’s Dictionary of the Vulgar Tongue, 1785:
"A shoplifter’s assistant, or one that receives and carries off stolen goods. All is bob; all is safe."
Nowadays the idiom means a successful result