This was current in the UK's working-class east London/surrounding counties around 1950s & 60s. I haven't heard it used for many years.
It was always used in the sense of the example. I never heard it used as a verb or adjective
Pete "cock on balls be done in a minute!"
"you've done another COB job johnson"