jenkins-gitlab-merge-request-builder-plugin
jenkins-gitlab-merge-request-builder-plugin copied to clipboard
Error setting up merge request builder
I am currently trying to set up a merge request builder for a project but on jenkins i always receive an error message SEVERE: Failed to get source project for Merge request with api url appeneded to it. https://gitlab.xxxxx.com/api/v3/projects/null?private_token=xxxxxxxxxxxx The null in the url seems to be wrong as it results in 404 on gitlab api. Where does that value populates from? Never saw it in the gitlab api documentation.
It seems like merge request builder is not working with the Gitlab version that i am currently running. Is there an requirement for minimum Gitlab version that this plugin supports? Based on the logs the plugin is not able to find repository id and appends null to the api.
Any update on this one? I'm suffering from the same issue. Is there any indication to which version of gitlab I should use? Any help is appreciated.
Me too. Any help is appreciated.
@psawant1985 the plugin requests a list of projects from the repository as a gitlab user. You may need to make sure that the user jenkins is connecting as has the appropriate level of permissions so that a projects are returned in the http response. If there are many projects, it could potentially be a pagination issue.
Are you able to construct an http request for the gitlab api as the jenkins user and fetch a list of projects?
The plugin is known to work with gitlab v5+
@timols I can use http://gitlab.xxxxx.com/api/v3/projects?private_token=xxxxxxxxxxxx to fetch a list of projects
I am been affected by this issue, I can use: http://gitlab.xxxxx.com/api/v3/projects?private_token=xxxxxxxxxxxx to fetch a list of projects. I am using GitLab 6.1.0.
I downloaded the plugin from github, so I am using version: 22808c262414fd13b4b6b858b38c8a6882377b92 from master.
I upgraded GitLab to the 7.9.1 version and the plugin started to work as expected.