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

Please upgrade to Gitlab V4 API

Open jenkins-sigaut opened this issue 6 years ago • 10 comments

Merge requests fail and I get the following error:

java.io.FileNotFoundException: https://xx.xxxxx.xx/api/v3/projects at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(Unknown Source) at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source) at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(Unknown Source) at org.gitlab.api.http.GitlabHTTPRequestor.parse(GitlabHTTPRequestor.java:324) at org.gitlab.api.http.GitlabHTTPRequestor.access$200(GitlabHTTPRequestor.java:28) at org.gitlab.api.http.GitlabHTTPRequestor$1.fetch(GitlabHTTPRequestor.java:232)

jenkins-sigaut avatar Dec 10 '18 11:12 jenkins-sigaut

fixed in #214 .

wuwen5 avatar Dec 11 '18 01:12 wuwen5

How do I install this version? (#214)

liddit2 avatar Jan 03 '19 21:01 liddit2

How do I install this version? (#214) image

vivienhao avatar Jun 17 '19 11:06 vivienhao

image In Jenkins plugins it's version stil 2.0.0 and use apiV3,please fixed ,thks!

RaywayJohn avatar Jul 19 '19 09:07 RaywayJohn

How do I install this version? (#214)

To install:

  1. Clone repository
  2. In root directory of repo, run mvn install (note: Apache Maven needs to be installed for mvn command to work)
  3. Once complete, navigate to target directory which was created to find the gitlab-merge-request-jenkins.hpi file
  4. Upload this file to your Jenkins server via Jenkins -> Manage Jenkins -> Manage Plugins -> Advanced tab -> Upload Plugin
  5. Restart Jenkins

liddit2 avatar Oct 02 '19 18:10 liddit2

@RaywayJohn hey have you tried the above approach? does it work?

Sorry,I didn't try it. I couldn't download it in internal network because of network policy.So only way to install jenkins plugin is in plugin manage module. Finally, I did it by other way. Thanks.

---Original--- From: "Aditya Pingale"<[email protected]> Date: Wed, Apr 15, 2020 19:29 PM To: "timols/jenkins-gitlab-merge-request-builder-plugin"<[email protected]>; Cc: "Mention"<[email protected]>;"RaywayJohn"<[email protected]>; Subject: Re: [timols/jenkins-gitlab-merge-request-builder-plugin] Please upgrade to Gitlab V4 API (#224)

@RaywayJohn hey have you tried the above approach? does it work?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or unsubscribe.

RaywayJohn avatar Apr 15 '20 11:04 RaywayJohn

@RaywayJohn can you help me with how did you manage to find another way?

If I remember correctly , finally I used GitLab API Plugin intead .

RaywayJohn avatar Apr 26 '20 05:04 RaywayJohn

I've manually built master (needed to use java-8 due to an error with javadoc under java 11) and it works. Could you please tag and release a new version?

wsnipex avatar Sep 11 '20 10:09 wsnipex