Generic webhook trigger implementation for jenkins


we are trying to implement “generic webhook trigger” instead of “poll SCM” for master branch only. Currently pipeline job is getting triggered for all the merged event for dev, qc and master, but aim is to restrict the pipeline job trigger when any merge event occur for master branch.
In operation filter, we have tried to filter the master branch with expression “refs/heads/master” but its not working and not able to get the desired result. Any suggestion/ help will be much appreciated.


Can anyone please help with the requested query related to generic webhook trigger implementation?