Hi there, If you use 1.50 version you can use: - https://github.com/jenkinsci/job-dsl-plugin/wiki/Automatically-Generated-DSL
I just installed https://wiki.jenkins-ci.org/display/JENKINS/Repository+Connector+Plugin and i was able to generate a DSL using the below DLS snippet <https://lh3.googleusercontent.com/-PHlf5LP-Reo/WO-o1xUzE1I/AAAAAAAAGYQ/Hm9UUfdFErsAyQ8IceWadjxUTFw5S-JZQCLcB/s1600/Screen%2BShot%2B2017-04-13%2Bat%2B17.35.17.png> job('test') { parameters { versionParameterDefinition { - repoid <http://0.0.0.0:18081/plugin/job-dsl/api-viewer/index.html#path/javaposse.jobdsl.dsl.helpers.BuildParametersContext.versionParameterDefinition-repoid> (String value) - groupid <http://0.0.0.0:18081/plugin/job-dsl/api-viewer/index.html#path/javaposse.jobdsl.dsl.helpers.BuildParametersContext.versionParameterDefinition-groupid> (String value) - artifactid <http://0.0.0.0:18081/plugin/job-dsl/api-viewer/index.html#path/javaposse.jobdsl.dsl.helpers.BuildParametersContext.versionParameterDefinition-artifactid> (String value) - propertyName <http://0.0.0.0:18081/plugin/job-dsl/api-viewer/index.html#path/javaposse.jobdsl.dsl.helpers.BuildParametersContext.versionParameterDefinition-propertyName> (String value) - description <http://0.0.0.0:18081/plugin/job-dsl/api-viewer/index.html#path/javaposse.jobdsl.dsl.helpers.BuildParametersContext.versionParameterDefinition-description> (String value) } } } <https://lh3.googleusercontent.com/-PHlf5LP-Reo/WO-o1xUzE1I/AAAAAAAAGYQ/Hm9UUfdFErsAyQ8IceWadjxUTFw5S-JZQCLcB/s1600/Screen%2BShot%2B2017-04-13%2Bat%2B17.35.17.png> You can find further details in your jenkins instance: - YOUR_JENKINS_URL/plugin/job-dsl/api-viewer/index.html#plugin/repository-connector Besides of that, there is a specific JobDSL mailing list: - https://groups.google.com/forum/#!forum/job-dsl-plugin Cheers On Friday, 7 April 2017 08:52:24 UTC+1, Ilija Rizovski wrote: > > Hey Remi, > > Unfortunately no, I gave up after a while so I don't have a solution to > that. > > Regards, > Ilija > > On Friday, April 7, 2017 at 5:09:53 AM UTC+2, [email protected] wrote: >> >> Hi Ilija, >> >> Did you find a solution to your problem? I am interested in achieving the >> same thing as you! >> >> Regards, >> Remi >> >> On Friday, August 19, 2016 at 12:53:21 AM UTC+12, Ilija Rizovski wrote: >>> >>> Hi, >>> >>> I am using Repository Connector Plugin v1.1.3, and also using Job DSL >>> Plugin v1.50. >>> >>> The question is: >>> How do I call this Repository Connector Plugin in my groovy script as a >>> parameter? >>> I searched in the documentation >>> <https://jenkinsci.github.io/job-dsl-plugin/#path/job-parameters> but >>> couldn't find anything that relates with this plugin. >>> I am expecting usage to be similar to stringParam >>> <https://jenkinsci.github.io/job-dsl-plugin/#path/job-parameters-stringParam>, >>> >>> so something like this: >>> >>> job('The job') { >>> parameters { >>> repoConnPlugin(repo, propertyName, artifactId, groupId, >>> description) >>> } >>> } >>> >>> Does anybody has an idea on how to use this plugin? >>> >>> Thanks, >>> Ilija >>> >> -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/15aef955-87ba-4970-8345-8f9ffa94622c%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
