-
Notifications
You must be signed in to change notification settings - Fork 619
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
buildOpenMergeRequests not triggering #144
Comments
I have seen this behavior occasionally also. I'm trying to track down what the problem is. If you figure anything out, please let me know! |
Seems to be a duplicate of #90 |
@omehegan if("update".equals(request.getObjectAttribute().getAction())) {
LOGGER.log(Level.INFO, "Existing Merge Request, build will be trigged by buildOpenMergeRequests instead");
return;
} i removed the |
@omehegan @joshuajorel i think it's a different problem here, the modification i made works as expected. but as @joshuajorel said i can not rebuild all open MRs after an existing MR has been accepted (yes,
and
returns error:
actually the branch
returns the right data:
btw, my gitlab version is thanks~ |
Yeah, I'm experiencing the same issue, but it's been almost 3 weeks since I last checked the code. So please let me know if you have an update or anything. I'll be back to fixing the problem this weekend since I'll be free by then. Let me know if you need anything and please keep me posted. Thanks! |
@joshuajorel ok, i think the not triggering thing is acting by design(i.e. forked repo need to setup a webhook too? i am not quite sure though), so i am not to create a PR for this, but to address our own problem(only setup a webhook for the master repo) we need to combine PR #169 #170 #171 and get rid of the |
I have this problem on GitLab 8.5.8 - build is started when MR is created but not started when source branch is updated. I tried adding a webhook in the fork repo, but this way build starts on each push, even when there is no MR, which I don't want to happen. I'd prefer having webhook only on main repo and triggering the build on MR updates. Do I need to remove the return statement from Jenkins plugin? Thanks! |
The gitlab-plugin is not building when a change is pushed to the source repository in an open merge request. In my Jenkins log, only the message "Existing Merge Request, build will be trigged by buildOpenMergeRequests instead."
HOWEVER, no logs follow suit that show that buildOpenMergeRequests triggered. Is there a setting I missed? Checking the source code all I see is that buildOpenMergeRequests is only called when it calls the generatePushBuild method. But my request enters the generateMergeRequests method, which never calls the method, but instead outputs to the logger the message I wrote above. Why was this designed this way if I may ask? Given this, is there a configuration I missed to enable building open merge requests?
I'm currently using Gitlab ver. 7.14.3, gitlab-plugin ver. 1.1.28, and Jenkins 1.625.2.
The text was updated successfully, but these errors were encountered: