-
Notifications
You must be signed in to change notification settings - Fork 81
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
Do not find project for composite branch names #2
Comments
Hi, glad you use it :-) Funny thing, I did test multilevel / composite branch names, especially since I use gitflow. But, I did notice you are probably using version 0.1.1. And this is entirely my fault. I committed the code to mine and Jenkins fork, but didn't release the plugin. So, just did that. You should be seeing version 0.2.0 in your Jenkins plugin update center, and if not (it takes time to propagate), you can find it @ jenkins repo. Before we go on, please use that updated version. In log, there should be some more info, e.g. INFO: gitlab web hook triggered for repo url http://gitlab.example.com/myproject
INFO: with payload: ... here comes the payload from gitlab, you can delete sensitive data Please send me this info. |
Thanks for replying, You're right, I'm using version 0.1.1. |
Ok, I'm on version 0.2.0 now. I created a new branch story/test and push it to gitlab Here the jenkins log :
(urls, names and mails manually changed) I expected to see |
Yes, you are right, I've been using only the last in payload["ref"].split("/"). |
I can't test my fix (and I am not used to code in ruby), but I think something like this could be fix the issue :
in models/gitlab_web_hook_api.rb (lines 115-117) |
Excellent, I wrote it a bit different, to ensure the intent is clear (removing head and ref from the entire path). I can't release from here but the update will be available later today. Let me know how it goes after you try it. |
Thanks, |
OK, so the new version 0.2.3 is up with another fix. |
My job is not triggered :'( |
Yep, residue from another feature I am building (automatic Jenkins project creating per Gitlab branch). |
Tried this morning. Thanks a lot. |
Great :-) |
Hi,
First, thanks for this usefull plugin.
But I have a small issue.
I configured Jenkins with git plugin to build several branches pattern :
gitlab/story/*
gitlab/bug/*
gitlab/dev
(
gitlab
is the name of my repo)When I trigger build with a remote trigger (or manually), all run fine .
But when I use gitlab hook, only fully specified branches are built like
gitlab/dev
In log :
(url is manually changed)
The text was updated successfully, but these errors were encountered: