Create a Jenkins Pipeline job for merge requests

48 views
Skip to first unread message

Supertwister

unread,
May 21, 2018, 10:20:40 AM5/21/18
to Jenkins Users
Hello,
I've started lately to use Jenkins and i need some help with creating a pipeline.

I want to create the following pipeline:
For each merge request from develop to master in Gitlab, Trigger a Jenkins job that run an end-to-end test, And merge the branches in Gitlab only if the test succeeded.

I have found the following article that gives me an explanation for most of the things that i need:

I'm still looking for an answer for one question:
How can Jenkins response to Gitlab with the result of the end-to-end test (Success/Fail), So Gitlab will know whether to merge to branches or not?


Please advise,
Thanks!

Brian Benson

unread,
May 21, 2018, 11:01:10 AM5/21/18
to Jenkins Users
What have you tried?

Supertwister

unread,
May 21, 2018, 3:05:28 PM5/21/18
to Jenkins Users
Currently i have a freestyle job in Jenkins that triggering on Gitlab merge request event. This job runs my end-to-end test.

Now need to know how to send Gitlab the result of the test, In order to know whether to merge the branches or not. 

I also planning to convert the freestyle job to a Jenkins file.

Neel Desai

unread,
May 22, 2018, 12:02:13 PM5/22/18
to Jenkins Users
Let me know if you get any work around solution. I am also looking for similar kind of functionality but for gerrit.
Reply all
Reply to author
Forward
0 new messages