[JENKINS-20596] Added support for rebuild plugin

I had previously added support directly in the rebuild plugin but this PR got rejected because a new extension point had been created.

https://issues.jenkins-ci.org/browse/JENKINS-20596
https://github.com/jenkinsci/rebuild-plugin/pull/20