Abstracting jenkins post-receive stuff for modular use