It dates back to at least 1888 (Smith's "Music of the Waters"), but all the early versions seem to be printed texts, not field collections. I would guess that it is a composed song, not truly traditional. But I can't prove it.
It's Roud #22827, so you can look up the versions and see what you think.