Hello,

I am already ask at stack overflow 
<https://stackoverflow.com/questions/57816839/configure-docker-in-jenkins-with-groovy>
 
and I am not sure how long I have to wait before I ask at another place. 
But for me it looks like nobody can help me at stack overflow that's why I 
am asking here again.

My problem is, that I would like configure some tools in the global 
configuration tool section e.g. docker. I already found snippets how to do 
this for maven 
<https://github.com/jenkinsci/jenkins-scripts/blob/master/scriptler/configMavenAutoInstaller.groovy>and
 
sonarqube 
<https://pghalliday.com/jenkins/groovy/sonar/chef/configuration/management/2014/09/21/some-useful-jenkins-groovy-scripts.html>and
 
based on this configuration I try to wrote my own groovy-skript to set the 
configuration for docker:

import jenkins.model.*
import hudson.plugins.*
import hudson.plugins.docker.*
import hudson.plugins.docker.model.*


def inst = Jenkins.getInstance()

def desc = inst.getDescriptor("hudson.plugins.docker.commons.tools.DockerTool")


but at this point I am stucking at the moment because I cannot figured out 
to set the nesecarry fields. I try:

def sinst = new DockerInstaller("test")

but this gaves me an "unable to resolve class DockerInstaller"-Error.

I would very thankful if someone here can give me an hint how to configure 
this because the only other option i see is to use the configuration as a 
code plugin but I think this is to much for just one configuration setting.
best regards
Dan

-- 
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/12a91df3-a87b-4466-a80f-782749b50bd5%40googlegroups.com.

Reply via email to