The PostBuildScript plugin works great.
However, I've noticed that when I load up the configuration page for my job in jenkins, the PBS information is missing. The config in screenshot1.png doesn't show up when the configuration is loaded again in screenshot2.png. If the config.xml is examined, the data is there:
And after saving the second time (as in screenshot2.png), the script is missing from config.xml:
I've made some customizations to the PBS plugin (as seen here https://github.com/mediatemple/postbuildscript-plugin in the build_info_as_env branch), but after looking at the code for a while, I think this is a little above my ken.