question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unable to set useAuthenticatedEndpoint from GitLab plugin

See original GitHub issue

Setting useAuthenticatedEndpoint in GitLabConnectionConfig from GitLab plugin fails with:

io.jenkins.plugins.casc.ConfiguratorException: Invalid configuration elements for type
classcom.dabsquared.gitlabjenkins.connection.GitLabConnectionConfig : useAuthenticatedEndpoint.
Available attributes : connections

The configuration I use:

unclassified:
  ...
  gitlabconnectionconfig:
    useAuthenticatedEndpoint: false

In addition, that field is not visible in the …/configuration-as-code/reference. This file hasn’t been changed since 2017. I wonder if the problem can be related to “Boolean” instead of “boolean” in that class?

  • Jenkins version - 2.121.3
  • Plugin version - 1.3
  • OS - Linux
  • GitLab plugin version - 1.5.10

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
szpakcommented, Dec 8, 2018

Well, I was thinking about that, but the plugin is already supported by casc and only that field is not visible/accessible. It’s perfectly fine to set it via UI. There are a setter and a getter. Therefore, I would like to here what’s wrong with that class/field to be able to fix it on the GitLab plugin side or to find out there is some limitation in the casc plugin (e.g. with Boolean fields) to fix it here.

I might debug it on my own, but I asked first to get know about any obvious reasons.

0reactions
jetersencommented, Apr 10, 2019

Closing issue as work is ongoing in the rightful place.

Read more comments on GitHub >

github_iconTop Results From Across the Web

jenkinsci/configuration-as-code-plugin - Gitter
I would like to configure "useAuthenticatedEndpoint" from GitLabConnectionConfig (https://github.com/jenkinsci/gitlab-plugin/blob/master/src/main/java/com ...
Read more >
Add JCasC support for useAuthenticatedEndpoint in gitlab ...
Using useAuthenticatedEndpoint in a CasC-config results in. io.jenkins.plugins.casc.ConfiguratorException: Invalid configuration elements ...
Read more >
GitLab Jenkins Integration
GitLab's Jenkins integration allows effortlessly set up of your project to build ... and GitLab will output the pipeline status (success or failed)...
Read more >
Failed to update Gitlab commit status for project HTTP 400 ...
Commit status create (API): Can no longer use links under NAT with ... See if comments of jenkinsci/gitlab-plugin issue 522 could help:.
Read more >
Using Jenkins with GitLab - YouTube
Options for Jenkins CI integration with GitLab. ... Your browser can't play this video. Learn more. Switch camera. Share. Include playlist.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found