I am integrating sonar to my bitbucket pipeline.

Sridevi S
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
June 27, 2024

 

 

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

1 answer

1 vote
Theodora Boudale
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
July 2, 2024

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

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events