I am using multibranch pipeline plugin in jenkins. I have configured with github setup of our corp. The pipeline reads for events as:
refspec = +refs/pull/*:refs/remotes/origin/pr/*
Now, for every pull request, it generates two builds
pr/1/head
pr/1/merge
Why do it generates two jobs or I should say github is generating two events as above. The Pull request reamined in open state though.