Open arturrekawek opened 1 month ago
https://javadoc.jenkins.io/plugin/gitlab-plugin/com/dabsquared/gitlabjenkins/connection/GitLabConnectionConfig.html#addConnection(com.dabsquared.gitlabjenkins.connection.GitLabConnection)
Any Jenkins LTS version
run few times with Groovy gitLabConnectionConfig.addConnection(newConnection) it does not check if newConnection is unique
this function should work as https://javadoc.jenkins.io/plugin/gitlab-branch-source/io/jenkins/plugins/gitlabserverconfig/servers/GitLabServers.html#addServer(io.jenkins.plugins.gitlabserverconfig.servers.GitLabServer)
Currently you can create multeiple connection with same id (name) It is not acceptable
No
Currently no
Jenkins and plugins versions report
Environment
```text Paste the output here ```What Operating System are you using (both controller, and any agents involved in the problem)?
https://javadoc.jenkins.io/plugin/gitlab-plugin/com/dabsquared/gitlabjenkins/connection/GitLabConnectionConfig.html#addConnection(com.dabsquared.gitlabjenkins.connection.GitLabConnection)
Any Jenkins LTS version
Reproduction steps
run few times with Groovy gitLabConnectionConfig.addConnection(newConnection) it does not check if newConnection is unique
Expected Results
this function should work as https://javadoc.jenkins.io/plugin/gitlab-branch-source/io/jenkins/plugins/gitlabserverconfig/servers/GitLabServers.html#addServer(io.jenkins.plugins.gitlabserverconfig.servers.GitLabServer)
Actual Results
Currently you can create multeiple connection with same id (name) It is not acceptable
Anything else?
No
Are you interested in contributing a fix?
Currently no