Jenkins 21750 promoted builds plugin

I tried to code it in a general form to support other people to extend the plugin.