Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

how to run - pipe: sonarsource/sonarcloud-scan:1.0.1 with my own branch

Diwakar Chapagain June 4, 2020

I am using a Pipe sonarsource/sonarcloud-scan:1.0.1. so far its all fine since I have my properties file as 

sonar.projectKey={key} 

sonar.organization={org} 

sonar.branch.name=origin/develop

------

 

I have a small problem with this.... how do I pass the current branch name to this property file?. Since this is hardcoded every scanning results are being clubbed together in develop branch. Your help would be appreciated!

1 answer

1 accepted

0 votes
Answer accepted
Richard Merchant June 5, 2020

Hi, @Diwakar Chapagain you don't actually need the branch name. It gets picked up automatically. So you can remove that setting

Diwakar Chapagain June 6, 2020

@Richard Merchant Thanks That worked!

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events