Thanks. Works well. Question resolved. вторник, 29 декабря 2015 г., 0:02:24 UTC+3 пользователь Baptiste Mathus написал: > > Hi, might be useful: > https://github.com/batmat/jez/blob/master/jenkins-master/init_scripts/configure_docker_swarm_cloud.groovy > > 2015-12-28 21:55 GMT+01:00 Ob Zen <[email protected] <javascript:>>: > >> Hi all, >> >> I'm trying to add DockerCloud via groovy script. I found how create >> DockerCloud constructor, but I don't understand how to save my >> configuration. See simple code below. >> >> ------ >> import com.nirima.jenkins.plugins.docker.* >> >> def instance = Jenkins.getInstance() >> def desc = >> instance.getDescriptor(com.nirima.jenkins.plugins.docker.DockerCloud) >> >> def c = new DockerCloud( >> "name1", >> [], >> "127.0.0.1", >> "100", >> 0, >> 0, >> "", >> "" >> ) >> ------ >> >> Fron jenkins plugin source code >> public DockerCloud(String name, List<? extends DockerTemplate> templates, >> String serverUrl, int containerCap, int connectTimeout, int readTimeout, >> String credentialsId, String version) >> Maybe anybody knows how to save plugin configuration and how to find and >> save other plugins configurations. >> >> -- >> 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] <javascript:>. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/jenkinsci-users/0c127f9c-ad43-4c87-ba81-dd2e9f4507d2%40googlegroups.com >> >> <https://groups.google.com/d/msgid/jenkinsci-users/0c127f9c-ad43-4c87-ba81-dd2e9f4507d2%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> For more options, visit https://groups.google.com/d/optout. >> > > > > -- > Baptiste <Batmat> MATHUS - http://batmat.net > Sauvez un arbre, > Mangez un castor ! >
-- 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/bd952c67-ce66-4e5c-8cef-cf28c98c2e62%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
