-
Notifications
You must be signed in to change notification settings - Fork 611
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
Jenkins requests from Gitlab the commit status of its merge commit #325
Comments
@telisior, in the Repository URL field, are you using http or ssh? I had a similar issue with http, but with ssh the same does not occur. Another thing that we saw comparing build injected variables:
|
We did the following workarounds:
|
@spelcaster, thank you for you suggestions. I'm already using the ssh URL (i.e. git@gitlab_server:group/project). I also tried with ${gitlabSourceRepoSshUrl} but I get the same error. I'm also using the repository name (origin) instead of any variables. |
Fixed with #311 |
Started by user ruth taylor
|
Hello.
In my setup I use:
In some cases, building a Merge Request fails before building with the following log on Jenkins:
When this happens I get this log from the Gitlab plugin:
In this case, the 8bb5e8e5d70d4da1316366f11abb01ea87841f46 commit is the merge commit created by Jenkins (in the "Merge before build" step):
So, Gitlab couldn't possibly know about this commit. But this commit-status request also seems to break things.
The strange thing is that I don't get this behavior in all cases, some MR's build OK (I haven't been able to figure out what makes the difference). In this case I just closed and then re-opened a pending MR to trigger the error.
The problem goes away if I don't add the post-build action "Publish build status to Gitlab commit", but then I lose a lot of the functionality.
I hadn't seen such problems in an older setup, which consisted of Jenkins v1.x, Gitlab v8.5.x and plugin v1.1.x -- unfortunately I upgraded all of them at the same time...
Any ideas, suggestions?
Thanks,
Telis
The text was updated successfully, but these errors were encountered: