jenkinsci / gitlab-hook-plugin

Deprecated, see https://www.jenkins.io/jep/7
133 stars 42 forks source link

Jenkins pipeline and Gitlab webhooks does not work #37

Open ZeusMinos opened 7 years ago

ZeusMinos commented 7 years ago

Hi, Just for reference I am using the latest Jenkins 2.35 with all the latest Gitlab/Pipeline plugins. My Gitlab (Hosted on our own servers) version is 8.13.2. I have been using webhooks to start other non-pipeline Jenkins jobs and it works ok. I tried to do the same thing using a pipeline Jenkins job and GitLab will return "Hook executed successfully but returned HTTP 500" and nothing happens on the Jenkins side. My pipeline job just display a message on the console if the job gets triggered. This is the link used on my Gitlab webhook: http://MyJenkinsServer/gitlab/build_now/MyPipelineJob Any help is more than welcome Down below is my pipeline code.

http://paste.ofcode.org/B9VFa5fHxEqbxKqxLEFAki

amontalban commented 7 years ago

Duplicate of #31