Repository Connector Plugin: usage in the DSL scripts

84 views
Skip to first unread message

Ilija Rizovski

unread,
Aug 18, 2016, 8:53:21 AM8/18/16
to Jenkins Users
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 but couldn't find anything that relates with this plugin.
I am expecting usage to be similar to 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

remi....@gmail.com

unread,
Apr 6, 2017, 11:09:53 PM4/6/17
to Jenkins Users
Hi Ilija,

Did you find a solution to your problem? I am interested in achieving the same thing as you! 

Regards,
Remi 

Ilija Rizovski

unread,
Apr 7, 2017, 3:52:24 AM4/7/17
to Jenkins Users
Hey Remi,

Unfortunately no, I gave up after a while so I don't have a solution to that.

Regards,
Ilija

Victor Martinez

unread,
Apr 13, 2017, 12:36:59 PM4/13/17
to Jenkins Users
Hi there,

If you use 1.50 version you can use:

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

job('test') {

  parameters
{

   
versionParameterDefinition {
    }
  }
}



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:

Cheers
Reply all
Reply to author
Forward
0 new messages