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

Failed to create note for merge request

Open schinnasamy opened this issue 8 years ago • 3 comments

Could anyone help me to fix this issue? I am trying to evaluate GITLAB with Jenkins to process Merge requests. I am getting error like:

Apr 03, 2017 4:43:00 PM INFO org.jenkinsci.plugins.gitlab.GitlabMergeRequestWrapper build Apr 03, 2017 4:43:01 PM INFO org.jenkinsci.plugins.gitlab.GitlabBuilds build The target regex matches the target branch {development}. Source branch {dev-scy4-feature1} Apr 03, 2017 4:43:01 PM INFO org.jenkinsci.plugins.gitlab.GitlabBuilds build Build is not supposed to run Apr 03, 2017 4:43:01 PM SEVERE org.jenkinsci.plugins.gitlab.GitlabMergeRequestWrapper createNote Failed to create note for merge request 65 java.io.FileNotFoundException: http://swxd-gitlab.dsone.3ds.com/api/v3/projects/23/merge_requests/65/notes at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(Unknown Source) at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source) at org.gitlab.api.http.GitlabHTTPRequestor.parse(GitlabHTTPRequestor.java:324) at org.gitlab.api.http.GitlabHTTPRequestor.to(GitlabHTTPRequestor.java:144) at org.gitlab.api.http.GitlabHTTPRequestor.to(GitlabHTTPRequestor.java:116) at org.gitlab.api.GitlabAPI.createNote(GitlabAPI.java:1073) at org.jenkinsci.plugins.gitlab.GitlabMergeRequestWrapper.createNote(GitlabMergeRequestWrapper.java:217) at org.jenkinsci.plugins.gitlab.GitlabMergeRequestWrapper.build(GitlabMergeRequestWrapper.java:258) at org.jenkinsci.plugins.gitlab.GitlabMergeRequestWrapper.check(GitlabMergeRequestWrapper.java:100) at org.jenkinsci.plugins.gitlab.GitlabRepository.check(GitlabRepository.java:86) at org.jenkinsci.plugins.gitlab.GitlabRepository.check(GitlabRepository.java:68) at org.jenkinsci.plugins.gitlab.GitlabMergeRequestBuilder.run(GitlabMergeRequestBuilder.java:28) at org.jenkinsci.plugins.gitlab.GitlabBuildTrigger.run(GitlabBuildTrigger.java:134) at hudson.triggers.Trigger.checkTriggers(Trigger.java:278) at hudson.triggers.Trigger$Cron.doRun(Trigger.java:226) at hudson.triggers.SafeTimerTask.run(SafeTimerTask.java:50) at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) at java.util.concurrent.FutureTask.runAndReset(Unknown Source) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(Unknown Source) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source)

schinnasamy avatar Apr 03 '17 23:04 schinnasamy

I have the same issue. Were you able to fix this?

cosminstirbu avatar Dec 19 '17 13:12 cosminstirbu

same here. no solution?

pedromarquesmm avatar Feb 21 '18 14:02 pedromarquesmm

I might have a solution! So, eventhough it detects branches that are supposed to build, somehow, MR Builder checks for hasCommitStatus, and that return false, making it impossible to build.

pedromarquesmm avatar Feb 22 '18 12:02 pedromarquesmm