JENKINS-18704: Implemented DSL method for dynamic port allocation plugin

Implemented DSL method to configure dynamically assigned ports for generated jobs. Comes with specs for test