Jenkins pipeline and Gitlab webhooks does not work

260 views
Skip to first unread message

xwyxw

unread,
Dec 7, 2016, 9:49:04 PM12/7/16
to Jenkins Users

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

Torsten Reinhard

unread,
Dec 8, 2016, 4:07:32 AM12/8/16
to Jenkins Users
Hi,

using BitBucket (Server) I had the same problem. This is already adresses in https://issues.jenkins-ci.org/browse/JENKINS-38447
Maybe the analysis in there may explain why it also doesn´t work for Gitlab.

Regards, Torsten

Daniel CABRERA

unread,
Dec 8, 2016, 4:25:56 AM12/8/16
to jenkins...@googlegroups.com
Thx for the link. well this ticket was open on october and nobody is working on it. Seams like we are at the bottom of the backlog

--
You received this message because you are subscribed to a topic in the Google Groups "Jenkins Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/jenkinsci-users/rBplb94Mq0I/unsubscribe.
To unsubscribe from this group and all its topics, send an email to jenkinsci-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/f95903e5-584a-4c2a-b4f8-6547fb3d025a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Stephen Connolly

unread,
Dec 8, 2016, 5:12:04 AM12/8/16
to jenkins...@googlegroups.com
So at least for the branch-source variants I'm working on GitHub and bitbucket updates to integrate with the new eventing subsystem in SCM API 2.0...

Not sure if that will help gitlab...
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CAJYBFtoz5mCRjTH9B8UKNeuxYi7Fzr0VOmBfCBUkPKPCpw54Hw%40mail.gmail.com.

For more options, visit https://groups.google.com/d/optout.


--
Sent from my phone
Reply all
Reply to author
Forward
0 new messages