-
Type:
Bug
-
Resolution: Fixed
-
Priority:
Minor
-
Component/s: configuration-as-code-plugin, role-strategy-plugin
-
Environment:* Operating System:
Debian 9 x64
* All relevant JRE/JDK vendors and versions:
openjdk version "1.8.0_242"
OpenJDK Runtime Environment (build 1.8.0_242-b08)
OpenJDK 64-Bit Server VM (build 25.242-b08, mixed mode)
* Jenkins and plugin versions:
Jenkins 2.233
Role base strategy 2.16
Config as a code 1.39
* My jenkins runs into docker container - 19.03
* Operating System: Debian 9 x64 * All relevant JRE/JDK vendors and versions: openjdk version "1.8.0_242" OpenJDK Runtime Environment (build 1.8.0_242-b08) OpenJDK 64-Bit Server VM (build 25.242-b08, mixed mode) * Jenkins and plugin versions: Jenkins 2.233 Role base strategy 2.16 Config as a code 1.39 * My jenkins runs into docker container - 19.03
-
587.v2872c41fa_e51
I want to try out config as code plugin.
I went to Manage Jenkins -> Configuration as Code and then I clicked "View configuration"
This is yaml output:
authorizationStrategy:
roleBased:
roles:
global: |-
FAILED TO EXPORT
org.jenkinsci.plugins.rolestrategy.casc.GrantedRoles#global: java.lang.NullPointerException
at java.util.regex.Matcher.getTextLength(Matcher.java:1283)
at java.util.regex.Matcher.reset(Matcher.java:309)
at java.util.regex.Matcher.<init>(Matcher.java:229)
at java.util.regex.Pattern.matcher(Pattern.java:1093)
at org.jenkinsci.plugins.rolestrategy.casc.PermissionFinder.findPermissionId(PermissionFinder.java:42)
at org.jenkinsci.plugins.rolestrategy.casc.RoleDefinition.getRole(RoleDefinition.java:48)
at org.jenkinsci.plugins.rolestrategy.casc.RoleDefinition.<init>(RoleDefinition.java:41)
Caused: 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 io.jenkins.plugins.casc.impl.configurators.DataBoundConfigurator.describe(DataBoundConfigurator.java:309)
at io.jenkins.plugins.casc.Attribute._describe(Attribute.java:329)
at io.jenkins.plugins.casc.Attribute.describe(Attribute.java:258)
at io.jenkins.plugins.casc.impl.configurators.DataBoundConfigurator.describe(DataBoundConfigurator.java:317)
at io.jenkins.plugins.casc.Attribute._describe(Attribute.java:329)
at io.jenkins.plugins.casc.Attribute.describe(Attribute.java:265)
at io.jenkins.plugins.casc.BaseConfigurator.compare(BaseConfigurator.java:392)
at org.jenkinsci.plugins.rolestrategy.casc.RoleBasedAuthorizationStrategyConfigurator.describe(RoleBasedAuthorizationStrategyConfigurator.java:92)
at org.jenkinsci.plugins.rolestrategy.casc.RoleBasedAuthorizationStrategyConfigurator.describe(RoleBasedAuthorizationStrategyConfigurator.java:32)
at io.jenkins.plugins.casc.impl.configurators.HeteroDescribableConfigurator.lambda$convertToNode$de0cd4f8$1(HeteroDescribableConfigurator.java:282)
at io.vavr.CheckedFunction0.lambda$unchecked$52349c75$1(CheckedFunction0.java:247)
at io.jenkins.plugins.casc.impl.configurators.HeteroDescribableConfigurator.convertToNode(HeteroDescribableConfigurator.java:282)
at io.jenkins.plugins.casc.impl.configurators.HeteroDescribableConfigurator.lambda$describe$5(HeteroDescribableConfigurator.java:107)
at io.vavr.control.Option.map(Option.java:392)
at io.jenkins.plugins.casc.impl.configurators.HeteroDescribableConfigurator.describe(HeteroDescribableConfigurator.java:107)
at io.jenkins.plugins.casc.impl.configurators.HeteroDescribableConfigurator.describe(HeteroDescribableConfigurator.java:55)
at io.jenkins.plugins.casc.Attribute._describe(Attribute.java:329)
at io.jenkins.plugins.casc.Attribute.describe(Attribute.java:265)
at io.jenkins.plugins.casc.Configurator.describe(Configurator.java:181)