Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to create note for merge request #204

Open
schinnasamy opened this issue Apr 3, 2017 · 3 comments
Open

Failed to create note for merge request #204

schinnasamy opened this issue Apr 3, 2017 · 3 comments

Comments

@schinnasamy
Copy link

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)

@cosminstirbu
Copy link

cosminstirbu commented Dec 19, 2017

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

@pedromarquesmm
Copy link

same here. no solution?

@pedromarquesmm
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants