Open gtheraud opened 8 years ago
This issue might be linked to #31 since my build is a Pipeline build.
I found out that there might be a bug in models/services/get_jenkins_projects.rb
:
projects = Java.jenkins.model.Jenkins.instance.getAllItems(AbstractProject.java_class).map do |jenkins_project|
This won't return the pipeline jobs. When I removed AbstractProject.java_class
to include pipeline jobs, i get :
undefined method 'scm' for OrgJenkinsciPluginsWorkflowJob::WorkflowJob
Unfortunately, that is how much I can do so far.
I also had the same problem,my gitlab web hooks is http://site/gitlab/build_now/projectName jenkins 2.20
I had the same problem, but found a workaround. I use the same web hook as @wuzhaozhongguo, but I opened the project configuration screen in Jenkins and copied the 'Project name' field from there. After that it worked.
Before: http://<site>/gitlab/build_now/BO_Merge_Request_Build
After: http://<site>/gitlab/build_now/bo_merge_request_build
Looks like it might be a case issue.
I'm on gitlab-hook-plugin v1.4.2, Jenkins 2.7.3.
Hope that helps.
Is this problem solved?
Having this issue on Jenkins 2.73.2., gilab-hook version 1.4.2.
@danielmbarlow 's suggestion did not work
I added following webhooks for
Push
andTag Push
Events in gitlab :my-project is a Jenkins Pipeline project. When i test the webhooks, i get the following HTTP Response :
with the following stack-trace :