I have a created a Jenkins pipeline job and also added the webhook for the piepline in GitLab for the merge events and for the merge request my pipeline is executing.
But I am not able to get after raising the merge request, how can I test the requested merge code before accepting the merge request. (Can I create some temporary branch from gitlabTargetBranch? is it possible)
I am using the two variables gitlabSourceBranch and gitlabTargetBranch in the checkout stage.
Can anyone please suggest what should be added in checkout stage for the above?
Thanks!