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]>:

> 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].
> 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/CANWgJS7APB%3DgaZkMdX1OyFsP6-ZG3nsQw5q17irj%3DqzHjeaNWw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to