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

Add JCasC support for useAuthenticatedEndpoint in gitlab-plugin

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Minor Minor
    • gitlab-plugin
    • 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

            emszpak Marcin ZajÄ…czkowski
            smasher Daniel Estermann
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: