[FIXED JENKINS-26024] Allow this plugin to operate on workflows

[JENKINS-26024](https://issues.jenkins-ci.org/browse/JENKINS-26024)

Avoid making unnecessary assumptions about the type of `Job` being rebuilt which would limit the plugin’s applicability.
Well if this gets merged I can consider a follow-up PR to do that, but it seems less important.