I am integrating sonar to my bitbucket pipeline. I am getting 2 pipelines build if i am integrating. my branch pipeline is succeeding without any error. my PR pipeline fails at test why and what is the difference between branch and PR Pipeline
Hi @Sridevi S and welcome to the community!
A branch pipeline will clone only that specific branch in the Docker container where the build is running. So, the build will run on the source code of that branch:
A pull-requests pipeline behaves differently. It will clone the source branch of the PR, and then it will merge the destination branch of the PR into the source branch (all this happens in the Docker container where the build is running, and not on the Bitbucket repo). So, the build will run on the merged code:
Please feel free to reach out if you have any questions.
Kind regards,
Theodora
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.