JINGO has a long history. Hey jingo! and High jingo! appear in conjuror's jibberish about 1670; OED. In Scotland, By Jing! is old common usage (OED). The following quotations from the OED "Heigh jingo, worse than it was before!" 1707, Fenton in "Fair Nun," OED. "By the living jingo, she was all of a muck of sweat." 1766, Goldsmith. "No, by the living jingo!" 1837, Marryat "Does he, by jingo!" 1800, Rhodes. A vulgar style- 1859, Millais Etc., etc.
The term later came into use as a nickname for those who supported Lord Beaconsfield in sending a British fleet into Turkish waters, and from there into the musical of 1878. A "blustering or blatant patriot."