If the URL https://gitlab.example.com/api/v3 is put in as the API url, the path component is repeated twice in the API requests, e.g. from our Gitlab logs:
5.153.x.x - - [17/Aug/2016:12:17:12 +0100] "GET /api/v3/api/v3/user HTTP/1.1" 302 109 "-" "Java/1.7.0_111"
I experienced the same issue a few moments ago and received a GitLab API exception. Temporary workaround is to use the URL without /api/v3
I'm watching this issue so that I can update my configuration when this plugin is updated. Thanks.
Code changed in jenkins
JENKINS-37518 Fix api url problem
New GitLab Api Client will automatically add api/v3 so we do not need to add api/v3 in config.
Maybe this config node can be delete in the future.
Fixed into 1.0.7 version by @wzxjohn