Please suggest me the rule condition for CICD pipeline trigger only though merge request only not through branch updates.
Currently I have applied the below condition…
if: $CI_PIPELINE_SOURCE == PUSH && $CI_COMMIT_BRANCH == :branch name
: event for pipeline trigger.
I want some additional condition to avoid pipeline trigger through branch file updates.
My expectation: pipeline should trigger only from merge requests not from any event is happening at branch.
Below solutions , i tried for the above case but its not working
- CI_MERGE_REUEST_ predefined parameters.
- only : - merge_requests
Please suggest any solution for the above mentioned issue that is really helping me.