Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-49603

Configuration slicer does not work on groovy scripts - NoSuchFieldError: DESCRIPTOR

XMLWordPrintable

    • Icon: New Feature New Feature
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • Jenkins 2.7.1
      Configuration Slicing Plugin 1.47
      Groovy 1.24

      Field Groovy.DESCRIPTOR was removed in 1.16.

      https://github.com/jenkinsci/groovy-plugin/blob/groovy-1.15/src/main/java/hudson/plugins/groovy/Groovy.java#L136

      https://github.com/jenkinsci/groovy-plugin/blob/groovy-1.16/src/main/java/hudson/plugins/groovy/Groovy.java#L136

      Caused by: java.lang.NoSuchFieldError: DESCRIPTOR
      	at configurationslicing.tools.GroovySlicer$GroovySlicerSpec.getToolInstallations(GroovySlicer.java:57)
      	at configurationslicing.tools.AbstractToolSlicerSpec.getInstallations(AbstractToolSlicerSpec.java:109)
      	at configurationslicing.tools.AbstractToolSlicerSpec.setValues(AbstractToolSlicerSpec.java:87)
      	at configurationslicing.tools.AbstractToolSlicerSpec.setValues(AbstractToolSlicerSpec.java:24)
      	at configurationslicing.UnorderedStringSlicer.transform(UnorderedStringSlicer.java:100)
      	at configurationslicing.UnorderedStringSlicer.transform(UnorderedStringSlicer.java:6)
      	at configurationslicing.ConfigurationSlicing$SliceExecutor.transform(ConfigurationSlicing.java:136)
      	at configurationslicing.ConfigurationSlicing$SliceExecutor.doSliceconfigSubmit(ConfigurationSlicing.java:180)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:498)
      	at org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:324)
      	at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:167)
      	at org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:100)
      	at org.kohsuke.stapler.MetaClass$1.doDispatch(MetaClass.java:124)
      	at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:58)
      	at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:746)
      

            mgaunin Mikael Gaunin
            mrichar2 Mark R
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: