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

IllegalArgumentException: providerId can NOT be null when using npmConfig

    XMLWordPrintable

    Details

    • Similar Issues:
    • Released As:
      1.2.8

      Description

      Same as JENKINS-43372 but it still happens for npmConfig.
      I don't see it changed in https://github.com/jenkinsci/config-file-provider-plugin/commit/97ba2549540d16537315c72e5eed65304263cd31 so I expect this is just a simple omission?

      17:13:00 java.lang.IllegalArgumentException: Could not instantiate {...} for NPMConfig(id: String, name: String, comment: String, content: String, providerId?: String, registries: NPMRegistry(url: String, credentialsId: String, hasScopes: boolean, scopes: String)[]): java.lang.reflect.InvocationTargetException
      17:13:00 	at org.jenkinsci.plugins.structs.describable.DescribableModel.instantiate(DescribableModel.java:287)
      17:13:00 	at org.jenkinsci.plugins.structs.describable.DescribableModel$instantiate$1.call(Unknown Source)
      17:13:00 	at javaposse.jobdsl.plugin.structs.DescribableContext.createInstance(DescribableContext.groovy:50)
      17:13:00 	at javaposse.jobdsl.plugin.structs.DescribableContext$createInstance.call(Unknown Source)
      17:13:00 	at javaposse.jobdsl.plugin.structs.DescribableListContext.methodMissing(DescribableListContext.groovy:61)
      17:13:00 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      17:13:00 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      17:13:00 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      17:13:00 	at java.lang.reflect.Method.invoke(Method.java:498)
      17:13:00 	at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:93)
      17:13:00 	at groovy.lang.MetaClassImpl.invokeMissingMethod(MetaClassImpl.java:939)
      17:13:00 	at groovy.lang.MetaClassImpl.invokePropertyOrMissing(MetaClassImpl.java:1262)
      17:13:00 	at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1215)
      17:13:00 	at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1022)
      17:13:00 	at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:810)
      17:13:00 	at javaposse.jobdsl.plugin.structs.DescribableListContext.invokeMethod(DescribableListContext.groovy)
      17:13:00 	at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeOnDelegationObjects(ClosureMetaClass.java:430)
      17:13:00 	at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:371)
      17:13:00 	at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1022)
      17:13:00 	at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.callCurrent(PogoMetaClassSite.java:69)
      17:13:00 	at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallCurrent(CallSiteArray.java:52)
      17:13:00 	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:154)
      17:13:00 	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:166)
      17:13:00 	at globalConfigFiles$_run_closure1.doCall(globalConfigFiles.groovy:42)
      17:13:00 	at globalConfigFiles$_run_closure1.doCall(globalConfigFiles.groovy)
      17:13:00 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      17:13:00 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      17:13:00 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      17:13:00 	at java.lang.reflect.Method.invoke(Method.java:498)
      17:13:00 	at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:93)
      17:13:00 	at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:325)
      17:13:00 	at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:294)
      17:13:00 	at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1022)
      17:13:00 	at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.call(PogoMetaClassSite.java:42)
      17:13:00 	at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:48)
      17:13:00 	at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.call(PogoMetaClassSite.java:57)
      17:13:00 	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:117)
      17:13:00 	at javaposse.jobdsl.dsl.ContextHelper.executeInContext(ContextHelper.groovy:16)
      17:13:00 	at javaposse.jobdsl.dsl.ContextHelper$executeInContext.call(Unknown Source)
      17:13:00 	at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:48)
      17:13:00 	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:113)
      17:13:00 	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:133)
      17:13:00 	at javaposse.jobdsl.plugin.JenkinsJobParent.configFiles(JenkinsJobParent.groovy:18)
      17:13:00 	at javaposse.jobdsl.dsl.DslFactory$configFiles$0.callCurrent(Unknown Source)
      17:13:00 	at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallCurrent(CallSiteArray.java:52)
      17:13:00 	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:154)
      17:13:00 	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:166)
      17:13:00 	at globalConfigFiles.run(globalConfigFiles.groovy:3)
      17:13:00 	at globalConfigFiles$run.call(Unknown Source)
      17:13:00 	at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:48)
      17:13:00 	at dockerPrune$run.call(Unknown Source)
      17:13:00 	at javaposse.jobdsl.dsl.AbstractDslScriptLoader.runScript(AbstractDslScriptLoader.groovy:132)
      17:13:00 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      17:13:00 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      17:13:00 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      17:13:00 	at java.lang.reflect.Method.invoke(Method.java:498)
      17:13:00 	at org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite$PogoCachedMethodSiteNoUnwrapNoCoerce.invoke(PogoMetaMethodSite.java:210)
      17:13:00 	at org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite.callCurrent(PogoMetaMethodSite.java:59)
      17:13:00 	at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallCurrent(CallSiteArray.java:52)
      17:13:00 	at org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite.callCurrent(PogoMetaMethodSite.java:64)
      17:13:00 	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:166)
      17:13:00 	at javaposse.jobdsl.dsl.AbstractDslScriptLoader.runScriptEngine(AbstractDslScriptLoader.groovy:106)
      17:13:00 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      17:13:00 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      17:13:00 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      17:13:00 	at java.lang.reflect.Method.invoke(Method.java:498)
      17:13:00 	at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:93)
      17:13:00 	at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:325)
      17:13:00 	at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:384)
      17:13:00 	at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1022)
      17:13:00 	at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.callCurrent(PogoMetaClassSite.java:69)
      17:13:00 	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:174)
      17:13:00 	at javaposse.jobdsl.dsl.AbstractDslScriptLoader$_runScripts_closure1.doCall(AbstractDslScriptLoader.groovy:59)
      17:13:00 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      17:13:00 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      17:13:00 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      17:13:00 	at java.lang.reflect.Method.invoke(Method.java:498)
      17:13:00 	at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:93)
      17:13:00 	at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:325)
      17:13:00 	at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:294)
      17:13:00 	at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1022)
      17:13:00 	at groovy.lang.Closure.call(Closure.java:414)
      17:13:00 	at groovy.lang.Closure.call(Closure.java:430)
      17:13:00 	at org.codehaus.groovy.runtime.DefaultGroovyMethods.each(DefaultGroovyMethods.java:2040)
      17:13:00 	at org.codehaus.groovy.runtime.DefaultGroovyMethods.each(DefaultGroovyMethods.java:2025)
      17:13:00 	at org.codehaus.groovy.runtime.DefaultGroovyMethods.each(DefaultGroovyMethods.java:2078)
      17:13:00 	at org.codehaus.groovy.runtime.dgm$164.invoke(Unknown Source)
      17:13:00 	at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite$PojoMetaMethodSiteNoUnwrapNoCoerce.invoke(PojoMetaMethodSite.java:274)
      17:13:00 	at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite.call(PojoMetaMethodSite.java:56)
      17:13:00 	at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:48)
      17:13:00 	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:113)
      17:13:00 	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:125)
      17:13:00 	at javaposse.jobdsl.dsl.AbstractDslScriptLoader.runScripts(AbstractDslScriptLoader.groovy:46)
      17:13:00 	at javaposse.jobdsl.plugin.ExecuteDslScripts.perform(ExecuteDslScripts.java:341)
      17:13:00 	at hudson.tasks.BuildStepCompatibilityLayer.perform(BuildStepCompatibilityLayer.java:81)
      17:13:00 	at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
      17:13:00 	at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:744)
      17:13:00 	at hudson.model.Build$BuildExecution.build(Build.java:206)
      17:13:00 	at hudson.model.Build$BuildExecution.doRun(Build.java:163)
      17:13:00 	at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:504)
      17:13:00 	at hudson.model.Run.execute(Run.java:1819)
      17:13:00 	at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
      17:13:00 	at hudson.model.ResourceController.execute(ResourceController.java:97)
      17:13:00 	at hudson.model.Executor.run(Executor.java:429)
      17:13:00 Caused by: java.lang.reflect.InvocationTargetException
      17:13:00 	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      17:13:00 	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
      17:13:00 	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
      17:13:00 	at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
      17:13:00 	at org.jenkinsci.plugins.structs.describable.DescribableModel.instantiate(DescribableModel.java:283)
      17:13:00 	... 103 more
      17:13:00 Caused by: java.lang.IllegalArgumentException: providerId can NOT be null
      17:13:00 	at org.jenkinsci.lib.configprovider.model.Config.<init>(Config.java:91)
      17:13:00 	at jenkins.plugins.nodejs.configfiles.NPMConfig.<init>(NPMConfig.java:64)
      17:13:00 	... 108 more

        Attachments

          Issue Links

            Activity

            jbochenski Jakub Bochenski created issue -
            jbochenski Jakub Bochenski made changes -
            Field Original Value New Value
            Description The {{configFiles}} context has a bunch of children, each of them has a {{providerId}} attribute.
            It's optional, but if you don't specify it you will get the following error at runtime: {code}java.lang.IllegalArgumentException: Could not instantiate { ... } for GroovyScript(id: String, name: String, comment: String, content: String, providerId?: String): java.lang.reflect.InvocationTargetException
            at org.jenkinsci.plugins.structs.describable.DescribableModel.instantiate(DescribableModel.java:264)
            at org.jenkinsci.plugins.structs.describable.DescribableModel$instantiate.call(Unknown Source)
            at javaposse.jobdsl.plugin.structs.DescribableContext.createInstance(DescribableContext.groovy:50)
            at javaposse.jobdsl.plugin.structs.DescribableContext$createInstance.call(Unknown Source)
            at javaposse.jobdsl.plugin.structs.DescribableListContext.methodMissing(DescribableListContext.groovy:57)
            at sun.reflect.GeneratedMethodAccessor15986.invoke(Unknown Source)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
            at java.lang.reflect.Method.invoke(Method.java:498)
            at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:93)
            at groovy.lang.MetaClassImpl.invokeMissingMethod(MetaClassImpl.java:941)
            at groovy.lang.MetaClassImpl.invokePropertyOrMissing(MetaClassImpl.java:1264)
            at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1217)
            at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1024)
            at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:812)
            at javaposse.jobdsl.plugin.structs.DescribableListContext.invokeMethod(DescribableListContext.groovy)
            at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeOnDelegationObjects(ClosureMetaClass.java:430)
            at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:371)
            at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1024)
            at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.callCurrent(PogoMetaClassSite.java:69)
            at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallCurrent(CallSiteArray.java:52)
            at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:154)
            at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:166)
            at ConfigFiles$_run_closure1.doCall(ConfigFiles.groovy:9)
            at ConfigFiles$_run_closure1.doCall(ConfigFiles.groovy)
            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.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:93)
            at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:325)
            at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:294)
            at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1024)
            at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.call(PogoMetaClassSite.java:42)
            at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:48)
            at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.call(PogoMetaClassSite.java:57)
            at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:117)
            at javaposse.jobdsl.dsl.ContextHelper.executeInContext(ContextHelper.groovy:16)
            at javaposse.jobdsl.dsl.ContextHelper$executeInContext.call(Unknown Source)
            at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:48)
            at javaposse.jobdsl.dsl.ContextHelper$executeInContext.call(Unknown Source)
            at javaposse.jobdsl.plugin.JenkinsJobParent.configFiles(JenkinsJobParent.groovy:18)
            at javaposse.jobdsl.dsl.DslFactory$configFiles$1.callCurrent(Unknown Source)
            at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallCurrent(CallSiteArray.java:52)
            at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:154)
            at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:166)
            at ConfigFiles.run(ConfigFiles.groovy:1)
            at ConfigFiles$run.call(Unknown Source)
            at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:48)
            at avalonPipeline$run.call(Unknown Source)
            at javaposse.jobdsl.dsl.AbstractDslScriptLoader.runScriptEngine(AbstractDslScriptLoader.groovy:111)
            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.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:93)
            at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:325)
            at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:384)
            at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1024)
            at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.callCurrent(PogoMetaClassSite.java:69)
            at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:174)
            at javaposse.jobdsl.dsl.AbstractDslScriptLoader$_runScripts_closure1.doCall(AbstractDslScriptLoader.groovy:58)
            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.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:93)
            at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:325)
            at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:294)
            at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1024)
            at groovy.lang.Closure.call(Closure.java:414)
            at groovy.lang.Closure.call(Closure.java:430)
            at org.codehaus.groovy.runtime.DefaultGroovyMethods.each(DefaultGroovyMethods.java:2030)
            at org.codehaus.groovy.runtime.DefaultGroovyMethods.each(DefaultGroovyMethods.java:2015)
            at org.codehaus.groovy.runtime.DefaultGroovyMethods.each(DefaultGroovyMethods.java:2068)
            at org.codehaus.groovy.runtime.dgm$164.invoke(Unknown Source)
            at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite$PojoMetaMethodSiteNoUnwrapNoCoerce.invoke(PojoMetaMethodSite.java:274)
            at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite.call(PojoMetaMethodSite.java:56)
            at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:125)
            at javaposse.jobdsl.dsl.AbstractDslScriptLoader.runScripts(AbstractDslScriptLoader.groovy:45)
            at javaposse.jobdsl.plugin.ExecuteDslScripts.perform(ExecuteDslScripts.java:251)
            at hudson.tasks.BuildStepCompatibilityLayer.perform(BuildStepCompatibilityLayer.java:78)
            at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
            at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:779)
            at hudson.model.Build$BuildExecution.build(Build.java:206)
            at hudson.model.Build$BuildExecution.doRun(Build.java:163)
            at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:534)
            at hudson.model.Run.execute(Run.java:1728)
            at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
            at hudson.model.ResourceController.execute(ResourceController.java:98)
            at hudson.model.Executor.run(Executor.java:405)
            Caused by: java.lang.reflect.InvocationTargetException
            at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
            at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
            at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
            at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
            at org.jenkinsci.plugins.structs.describable.DescribableModel.instantiate(DescribableModel.java:260)
            ... 89 more
            Caused by: java.lang.IllegalArgumentException: providerId can NOT be null
            at org.jenkinsci.lib.configprovider.model.Config.<init>(Config.java:94)
            at org.jenkinsci.plugins.configfiles.groovy.GroovyScript.<init>(GroovyScript.java:48)
            ... 94 more{code}

            This happens for groovy scripts, and xml files. It doesn't seem to happen to maven files.

            Setting the field to any non-null value seems to work.

             I'm guessing (as the field is not visible in the WebUi) this is some internal metadata supposed to idetify where the file came from, so I think job-dsl should supply the actual value there.
            Same as JENKINS-43372 but it still happens for npmConfig.
            I don't see it changed in https://github.com/jenkinsci/config-file-provider-plugin/commit/97ba2549540d16537315c72e5eed65304263cd31 so I expect this is just a simple omission?
            jbochenski Jakub Bochenski made changes -
            Description Same as JENKINS-43372 but it still happens for npmConfig.
            I don't see it changed in https://github.com/jenkinsci/config-file-provider-plugin/commit/97ba2549540d16537315c72e5eed65304263cd31 so I expect this is just a simple omission?
            Same as JENKINS-43372 but it still happens for npmConfig.
            I don't see it changed in https://github.com/jenkinsci/config-file-provider-plugin/commit/97ba2549540d16537315c72e5eed65304263cd31 so I expect this is just a simple omission?

            {code}17:13:00 java.lang.IllegalArgumentException: Could not instantiate {...} for NPMConfig(id: String, name: String, comment: String, content: String, providerId?: String, registries: NPMRegistry(url: String, credentialsId: String, hasScopes: boolean, scopes: String)[]): java.lang.reflect.InvocationTargetException
            17:13:00 at org.jenkinsci.plugins.structs.describable.DescribableModel.instantiate(DescribableModel.java:287)
            17:13:00 at org.jenkinsci.plugins.structs.describable.DescribableModel$instantiate$1.call(Unknown Source)
            17:13:00 at javaposse.jobdsl.plugin.structs.DescribableContext.createInstance(DescribableContext.groovy:50)
            17:13:00 at javaposse.jobdsl.plugin.structs.DescribableContext$createInstance.call(Unknown Source)
            17:13:00 at javaposse.jobdsl.plugin.structs.DescribableListContext.methodMissing(DescribableListContext.groovy:61)
            17:13:00 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            17:13:00 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
            17:13:00 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
            17:13:00 at java.lang.reflect.Method.invoke(Method.java:498)
            17:13:00 at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:93)
            17:13:00 at groovy.lang.MetaClassImpl.invokeMissingMethod(MetaClassImpl.java:939)
            17:13:00 at groovy.lang.MetaClassImpl.invokePropertyOrMissing(MetaClassImpl.java:1262)
            17:13:00 at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1215)
            17:13:00 at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1022)
            17:13:00 at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:810)
            17:13:00 at javaposse.jobdsl.plugin.structs.DescribableListContext.invokeMethod(DescribableListContext.groovy)
            17:13:00 at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeOnDelegationObjects(ClosureMetaClass.java:430)
            17:13:00 at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:371)
            17:13:00 at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1022)
            17:13:00 at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.callCurrent(PogoMetaClassSite.java:69)
            17:13:00 at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallCurrent(CallSiteArray.java:52)
            17:13:00 at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:154)
            17:13:00 at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:166)
            17:13:00 at globalConfigFiles$_run_closure1.doCall(globalConfigFiles.groovy:42)
            17:13:00 at globalConfigFiles$_run_closure1.doCall(globalConfigFiles.groovy)
            17:13:00 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            17:13:00 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
            17:13:00 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
            17:13:00 at java.lang.reflect.Method.invoke(Method.java:498)
            17:13:00 at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:93)
            17:13:00 at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:325)
            17:13:00 at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:294)
            17:13:00 at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1022)
            17:13:00 at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.call(PogoMetaClassSite.java:42)
            17:13:00 at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:48)
            17:13:00 at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.call(PogoMetaClassSite.java:57)
            17:13:00 at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:117)
            17:13:00 at javaposse.jobdsl.dsl.ContextHelper.executeInContext(ContextHelper.groovy:16)
            17:13:00 at javaposse.jobdsl.dsl.ContextHelper$executeInContext.call(Unknown Source)
            17:13:00 at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:48)
            17:13:00 at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:113)
            17:13:00 at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:133)
            17:13:00 at javaposse.jobdsl.plugin.JenkinsJobParent.configFiles(JenkinsJobParent.groovy:18)
            17:13:00 at javaposse.jobdsl.dsl.DslFactory$configFiles$0.callCurrent(Unknown Source)
            17:13:00 at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallCurrent(CallSiteArray.java:52)
            17:13:00 at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:154)
            17:13:00 at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:166)
            17:13:00 at globalConfigFiles.run(globalConfigFiles.groovy:3)
            17:13:00 at globalConfigFiles$run.call(Unknown Source)
            17:13:00 at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:48)
            17:13:00 at dockerPrune$run.call(Unknown Source)
            17:13:00 at javaposse.jobdsl.dsl.AbstractDslScriptLoader.runScript(AbstractDslScriptLoader.groovy:132)
            17:13:00 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            17:13:00 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
            17:13:00 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
            17:13:00 at java.lang.reflect.Method.invoke(Method.java:498)
            17:13:00 at org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite$PogoCachedMethodSiteNoUnwrapNoCoerce.invoke(PogoMetaMethodSite.java:210)
            17:13:00 at org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite.callCurrent(PogoMetaMethodSite.java:59)
            17:13:00 at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallCurrent(CallSiteArray.java:52)
            17:13:00 at org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite.callCurrent(PogoMetaMethodSite.java:64)
            17:13:00 at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:166)
            17:13:00 at javaposse.jobdsl.dsl.AbstractDslScriptLoader.runScriptEngine(AbstractDslScriptLoader.groovy:106)
            17:13:00 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            17:13:00 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
            17:13:00 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
            17:13:00 at java.lang.reflect.Method.invoke(Method.java:498)
            17:13:00 at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:93)
            17:13:00 at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:325)
            17:13:00 at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:384)
            17:13:00 at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1022)
            17:13:00 at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.callCurrent(PogoMetaClassSite.java:69)
            17:13:00 at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:174)
            17:13:00 at javaposse.jobdsl.dsl.AbstractDslScriptLoader$_runScripts_closure1.doCall(AbstractDslScriptLoader.groovy:59)
            17:13:00 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            17:13:00 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
            17:13:00 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
            17:13:00 at java.lang.reflect.Method.invoke(Method.java:498)
            17:13:00 at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:93)
            17:13:00 at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:325)
            17:13:00 at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:294)
            17:13:00 at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1022)
            17:13:00 at groovy.lang.Closure.call(Closure.java:414)
            17:13:00 at groovy.lang.Closure.call(Closure.java:430)
            17:13:00 at org.codehaus.groovy.runtime.DefaultGroovyMethods.each(DefaultGroovyMethods.java:2040)
            17:13:00 at org.codehaus.groovy.runtime.DefaultGroovyMethods.each(DefaultGroovyMethods.java:2025)
            17:13:00 at org.codehaus.groovy.runtime.DefaultGroovyMethods.each(DefaultGroovyMethods.java:2078)
            17:13:00 at org.codehaus.groovy.runtime.dgm$164.invoke(Unknown Source)
            17:13:00 at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite$PojoMetaMethodSiteNoUnwrapNoCoerce.invoke(PojoMetaMethodSite.java:274)
            17:13:00 at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite.call(PojoMetaMethodSite.java:56)
            17:13:00 at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:48)
            17:13:00 at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:113)
            17:13:00 at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:125)
            17:13:00 at javaposse.jobdsl.dsl.AbstractDslScriptLoader.runScripts(AbstractDslScriptLoader.groovy:46)
            17:13:00 at javaposse.jobdsl.plugin.ExecuteDslScripts.perform(ExecuteDslScripts.java:341)
            17:13:00 at hudson.tasks.BuildStepCompatibilityLayer.perform(BuildStepCompatibilityLayer.java:81)
            17:13:00 at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
            17:13:00 at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:744)
            17:13:00 at hudson.model.Build$BuildExecution.build(Build.java:206)
            17:13:00 at hudson.model.Build$BuildExecution.doRun(Build.java:163)
            17:13:00 at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:504)
            17:13:00 at hudson.model.Run.execute(Run.java:1819)
            17:13:00 at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
            17:13:00 at hudson.model.ResourceController.execute(ResourceController.java:97)
            17:13:00 at hudson.model.Executor.run(Executor.java:429)
            17:13:00 Caused by: java.lang.reflect.InvocationTargetException
            17:13:00 at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
            17:13:00 at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
            17:13:00 at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
            17:13:00 at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
            17:13:00 at org.jenkinsci.plugins.structs.describable.DescribableModel.instantiate(DescribableModel.java:283)
            17:13:00 ... 103 more
            17:13:00 Caused by: java.lang.IllegalArgumentException: providerId can NOT be null
            17:13:00 at org.jenkinsci.lib.configprovider.model.Config.<init>(Config.java:91)
            17:13:00 at jenkins.plugins.nodejs.configfiles.NPMConfig.<init>(NPMConfig.java:64)
            17:13:00 ... 108 more{code}
            jbochenski Jakub Bochenski made changes -
            Link This issue is related to JENKINS-43372 [ JENKINS-43372 ]
            imod Dominik Bartholdi made changes -
            Component/s nodejs-plugin [ 15991 ]
            Component/s config-file-provider-plugin [ 16140 ]
            Component/s job-dsl-plugin [ 16720 ]
            imod Dominik Bartholdi made changes -
            Assignee Dominik Bartholdi [ domi ] Nikolas Falco [ nfalco ]
            nfalco Nikolas Falco made changes -
            Resolution Fixed [ 1 ]
            Status Open [ 1 ] Fixed but Unreleased [ 10203 ]
            nfalco Nikolas Falco made changes -
            Released As 1.2.8
            Status Fixed but Unreleased [ 10203 ] Resolved [ 5 ]

              People

              Assignee:
              nfalco Nikolas Falco
              Reporter:
              jbochenski Jakub Bochenski
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: