Import self promotions from promoted-builds plugin

This provides self promotions, which can be useful to chain build with a promotion operation that is not environment-specific.