| I am a bit confused - the TestCrumbIssuer contained in the issue title is not contained in the provided stacktrace. Why is that? I hit the same/similar problem with TestCrumbIssuer when testing for JCasC compatibility. Running ConfigurationAsCode.get().export(System.out) in tests results in the following output. Jenkins Log
0.262 [id=110] WARNING i.j.p.c.i.DefaultConfiguratorRegistry#internalLookup: Configuration-as-Code can't handle type class org.jvnet.hudson.test.TestCrumbIssuer
JCasC Output
plugins:
sites:
- id: "default"
url: "http:
jenkins:
agentProtocols:
- "CLI-connect"
- "CLI2-connect"
- "JNLP-connect"
- "JNLP2-connect"
- "JNLP4-connect"
- "Ping"
crumbIssuer: "FAILED TO EXPORT hudson.model.Hudson#crumbIssuer: \nio.jenkins.plugins.casc.ConfiguratorException:\
\ Cannot find configurator for type class org.jvnet.hudson.test.TestCrumbIssuer\n\
\tat io.jenkins.plugins.casc.impl.DefaultConfiguratorRegistry$1.load(DefaultConfiguratorRegistry.java:97)\n\
\tat io.jenkins.plugins.casc.impl.DefaultConfiguratorRegistry$1.load(DefaultConfiguratorRegistry.java:93)\n\
\tat com.google.common.cache.LocalCache$LoadingValueReference.loadFuture(LocalCache.java:3524)\n\
\tat com.google.common.cache.LocalCache$Segment.loadSync(LocalCache.java:2317)\n\
\tat com.google.common.cache.LocalCache$Segment.lockedGetOrLoad(LocalCache.java:2280)\n\
\tat com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2195)\n\t\
at com.google.common.cache.LocalCache.get(LocalCache.java:3934)\n\tat com.google.common.cache.LocalCache.getOrLoad(LocalCache.java:3938)\n\
\tat com.google.common.cache.LocalCache$LocalLoadingCache.get(LocalCache.java:4821)\n\
\tat io.jenkins.plugins.casc.impl.DefaultConfiguratorRegistry.lookupOrFail(DefaultConfiguratorRegistry.java:70)\n\
\tat io.jenkins.plugins.casc.ConfigurationContext.lookupOrFail(ConfigurationContext.java:71)\n\
\tat io.jenkins.plugins.casc.impl.configurators.HeteroDescribableConfigurator.describe(HeteroDescribableConfigurator.java:160)\n\
\tat io.jenkins.plugins.casc.impl.configurators.HeteroDescribableConfigurator.describe(HeteroDescribableConfigurator.java:43)\n\
\tat io.jenkins.plugins.casc.Attribute.describe(Attribute.java:196)\n\tat io.jenkins.plugins.casc.core.JenkinsConfigurator.describe(JenkinsConfigurator.java:83)\n\
\tat io.jenkins.plugins.casc.core.JenkinsConfigurator.describe(JenkinsConfigurator.java:30)\n\
\tat io.jenkins.plugins.casc.ConfigurationAsCode.export(ConfigurationAsCode.java:411)\n\
\tat sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\n\tat sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)\n\
\tat sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\n\
\tat java.lang.reflect.Method.invoke(Method.java:498)\n\tat org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:98)\n\
\tat groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:325)\n\tat groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1225)\n\
\tat groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1034)\n\tat org.codehaus.groovy.runtime.InvokerHelper.invokePojoMethod(InvokerHelper.java:935)\n\
\tat org.codehaus.groovy.runtime.InvokerHelper.invokeMethod(InvokerHelper.java:926)\n\
\tat org.spockframework.runtime.GroovyRuntimeUtil.invokeMethod(GroovyRuntimeUtil.java:171)\n\
\tat org.spockframework.runtime.SpockRuntime.verifyMethodCondition(SpockRuntime.java:107)\n\
\tat hudson.plugins.gradle.ConfigurationAsCodeTest.$spock_feature_1_2(ConfigurationAsCodeTest.groovy:59)\n\
\tat sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\n\tat sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)\n\
\tat sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\n\
\tat java.lang.reflect.Method.invoke(Method.java:498)\n\tat org.spockframework.util.ReflectionUtil.invokeMethod(ReflectionUtil.java:200)\n\
\tat org.spockframework.runtime.model.MethodInfo.invoke(MethodInfo.java:113)\n\
\tat org.spockframework.runtime.BaseSpecRunner.invokeRaw(BaseSpecRunner.java:484)\n\
\tat org.spockframework.runtime.BaseSpecRunner.invoke(BaseSpecRunner.java:467)\n\
\tat org.spockframework.runtime.BaseSpecRunner.runFeatureMethod(BaseSpecRunner.java:408)\n\
\tat org.spockframework.runtime.BaseSpecRunner.doRunIteration(BaseSpecRunner.java:322)\n\
\tat org.spockframework.runtime.BaseSpecRunner$6.invoke(BaseSpecRunner.java:306)\n\
\tat org.spockframework.runtime.extension.MethodInvocation.proceed(MethodInvocation.java:98)\n\
\tat org.spockframework.runtime.extension.builtin.AbstractRuleInterceptor$1.evaluate(AbstractRuleInterceptor.java:37)\n\
\tat org.junit.rules.TestWatcher$1.evaluate(TestWatcher.java:55)\n\tat org.jvnet.hudson.test.JenkinsRule$1.evaluate(JenkinsRule.java:552)\n\
\tat org.junit.internal.runners.statements.FailOnTimeout$CallableStatement.call(FailOnTimeout.java:298)\n\
\tat org.junit.internal.runners.statements.FailOnTimeout$CallableStatement.call(FailOnTimeout.java:292)\n\
\tat java.util.concurrent.FutureTask.run(FutureTask.java:266)\n\tat java.lang.Thread.run(Thread.java:748)\n"
disableRememberMe: false
mode: NORMAL
numExecutors: 2
primaryView:
all:
name: "all"
quietPeriod: 5
scmCheckoutRetryCount: 0
slaveAgentPort: 0
views:
- all:
name: "all"
tool:
jdk:
defaultProperties:
- installSource:
installers:
- jdkInstaller:
acceptLicense: false
installations:
- home: "/usr/lib/jvm/java-8-openjdk/jre"
name: "default"
|