I recently came across a PR build which for some reason was only checking if code merge is possible and was not really building on merged code.
I always had an understanding that the PR build should do following (assuming a
feature branch is being merged to
- checkout the destination branch (master)
- pull/merge the source branch (feature)
- make sure merge has no issues [OR Fail]
- trigger necessary steps of build i.e. compile, test etc.
- clean up
I tried searching on internet on what are the steps followed during PR build but could not find anything clear. I wanted to check with this community if this understanding is correct OR I had a wrong understanding of PR builds all along.
We are using Bitbucket Branch Source Plugin