-
Improvement
-
Resolution: Fixed
-
Minor
-
Gitlab plugin version: 1.5.12
Jenkins version: 2.194
-
-
1.5.16
Using useAuthenticatedEndpoint in a CasC-config results in
io.jenkins.plugins.casc.ConfiguratorException: Invalid configuration elements for type class com.dabsquared.gitlabjenkins.connection.GitLabConnectionConfig : useAuthenticatedEndpoint. Available attributes : connections at io.jenkins.plugins.casc.BaseConfigurator.handleUnknown(BaseConfigurator.java:377) at io.jenkins.plugins.casc.BaseConfigurator.configure(BaseConfigurator.java:366) at io.jenkins.plugins.casc.BaseConfigurator.check(BaseConfigurator.java:287) at io.jenkins.plugins.casc.BaseConfigurator.configure(BaseConfigurator.java:352) at io.jenkins.plugins.casc.BaseConfigurator.check(BaseConfigurator.java:287) at io.jenkins.plugins.casc.ConfigurationAsCode.lambda$checkWith$7(ConfigurationAsCode.java:709) at io.jenkins.plugins.casc.ConfigurationAsCode.invokeWith(ConfigurationAsCode.java:659)
To fix it it is needed to change the visibility of setter GitLabConnectionConfig#setUseAuthenticatedEndpoint.
Github issue: https://github.com/jenkinsci/gitlab-plugin/issues/974
Github PR: https://github.com/jenkinsci/gitlab-plugin/pull/965