The provenance of the song has been discussed before link to no firm conclusion.
Frank Harte reports that Dominic Behan said he got some of it from Sean O'Casey and the rest 'from a woman in England' but that the 'source' is inevitably traced back to Dominic!