Can you add these lines to support builds which have a "run parameter"?  Run parameters are a drop list of executions of another build.  It's a small change so we can reuse your plugin