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

Add JCasC support for useAuthenticatedEndpoint in gitlab-plugin

    XMLWordPrintable

Details

    • 1.5.16

    Description

      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

      Attachments

        Activity

          There are no comments yet on this issue.

          People

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

            Dates

              Created:
              Updated:
              Resolved: