Right now I have configured jenkins gitlab connection and gitlab webhook to trigger jenkins jobs.
I would like to create Jenkinsfile where some tasks are executed only if build was triggered by push and some others only if build was triggered by merge request. I use pipeline jobs. Is that possible?
BUILD_CAUSE variable shows nothing.
Thanks.