[JENKINS-21935] added DSL support for the repository-connector plugin

Please review and merge