Thanks so much! well it worked 







import jenkins.model.*

import hudson.plugins.sonar.*

import hudson.plugins.sonar.model.*

import hudson.model.*



def inst = Jenkins.getInstance()

SonarGlobalConfiguration global = Hudson.instance.getDescriptorByType(
SonarGlobalConfiguration.class)

def sinst = new SonarInstallation(

  "sonar",

  "http://localhost:9000/";,

  "yyyyyyyyyyyyyy",

  "3.2",

  "",

  new TriggersConfig(),

  ""

)

global.setInstallations(sinst)



global.save()



On Friday, May 18, 2018 at 1:42:19 PM UTC-7, Victor Martinez wrote:
>
> Well.. the stacktrace message is quite clear:
>
> groovy.lang.MissingPropertyException: No such property: desc for class: 
> RemoteClass
>
>
> Worth to look for where 'desc' is declared/instanced as it's not part of 
> the snippet you pasted it. Likely you could find some answers in this code:
> - 
> https://github.com/hayderimran7/useful-jenkins-groovy-init-scripts/blob/master/sonar-artifactory-settings.groovy
>
> Cheers
>

-- 
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/b1877ef6-cf97-4b09-b6fe-78afd8d72af8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to