Green’s Dictionary of Slang

jocks n.

[euph. for Jesus! excl.]

(US) used in mild oaths, typically by jocks!, i jock!

[US]Donaldson Chief (LA) 23 Mar. 1/2: Well then, by Jimminy Pelt, by dad, by hokey, by the long-armed soon, by jocks.
[Aus]Dead Bird (Sydney) 17 Aug. 2/1: ‘You wouldn’t,’ replied the rude boy [...] ‘By Jocks, you couldn’t!’.
[US]A.C. Gunter M.S. Bradford Special 203: Jocks! but he’s going to drive missus [...] he is.
[US]J.W. Carr ‘Words from Northwest Arkansas’ in DN III:ii 143: jocks, n. In the mild imprecation, ‘by jocks’.