Detecting SSH build

I’m not seeing anything obvious in my build but I would like to be able to detect the when someone has “rebuilt with ssh” so that I can delay destroying stuff at end of build.

Any suggestions?

-Ry

hello, anyone?