Do everything that makes sense there within stages. This will make your builds easier to visualize, debug, etc. Do all real work that involves running a shell script, building, etc, within node blocks, so that it actually happens on a real executor, rather than a flyweight executor on the master node. Get your flows from source control - Jenkinsfiles, loading libraries, global CPS library, you nam