JENKINS-21009 Support for manual triggers from the Build Pipeline Plugin.

Support for triggering manual tasks. Trigger used from Build Pipeline Plugin.
Same changes as in previous branch JENKINS-21009-manual-trigger but commits are squashed.