jenkins-gitlab-merge-request-builder-plugin icon indicating copy to clipboard operation
jenkins-gitlab-merge-request-builder-plugin copied to clipboard

Error setting up merge request builder

Open psawant1985 opened this issue 11 years ago • 7 comments

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.

psawant1985 avatar Jun 16 '14 18:06 psawant1985

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.

psawant1985 avatar Jun 26 '14 18:06 psawant1985

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.

jeroenr avatar Nov 20 '14 14:11 jeroenr

Me too. Any help is appreciated.

liatsineam avatar Nov 24 '14 14:11 liatsineam

@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 avatar Nov 30 '14 18:11 timols

@timols I can use http://gitlab.xxxxx.com/api/v3/projects?private_token=xxxxxxxxxxxx to fetch a list of projects

liatsineam avatar Dec 01 '14 03:12 liatsineam

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.

jmaslibre avatar Apr 01 '15 00:04 jmaslibre

I upgraded GitLab to the 7.9.1 version and the plugin started to work as expected.

jmaslibre avatar Apr 02 '15 18:04 jmaslibre