According to Bert Lloyd the song was first collected in Dublin, Ireland back in the 1780's.
There are hundreds of versions in all English speaking areas.
Luke Cheevers the renowned Dublin singer still has this song in his repertoire and sings it unaccompanied.