jenkinsci / jenkinsci/gitlab-branch-source-plugin

Plugin doesn't populate credentials drop down

Open
#110 8 comments 7 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
134
Forks
113
PR merge metrics
No merged PRs in 30d

Description

When configuring GitLab Servers in the Jenkins global configuration, the credentials dropdown doesn't populate with system credentials.

We have a private GitLab server on the same network as our Cloudbees instance. After entering the GitLab URL in the URL field, the UI shows an "Invalid GitLab Server URL".

I did some digging into the source code and figured out that it tries to hit the /projects API of the gitlab instance in order to validate the location. For our instance, you can't hit the /projects API unless you're authorized. Since the credentials drop down seemingly doesn't populate unless you've entered a "valid" gitlab URL (or maybe not at all?), we can't select creds to authorize the GitLab validity check with.

Also, adding new credentials from this configuration doesn't populate the drop down, but it does at them to the list of system credentials for the Jenkins managed master.

Screen shot below:

![Screen Shot 2021-01-12 at 7 42 28 AM](https://user-images.githubusercontent.com/10180336/104322396-8952a380-54aa-11eb-9665-c92127d35a24.png)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.