I am trying to add Sonar Cloud to my repo. I clicked Pipeline, and create bitbucket-pipelines.yml file but it wont let me commit this file in the root of the repo.
I clicked the Commit File button, and I have my SONAR_TOKEN saved per the tutorial.
"This repository does not have any files
You can still commit changes and run the pipeline but it may lead to a failure."
I don’t really understand what I should do. If I try to hit the back button it discards the changes in I have in the bitbucket-pipelines.yml
Hi Matt and welcome to the community.
Could you please provide us with the URL of the tutorial you are following?
You mention that you want to add Sonar Cloud, but it looks that you're also trying to set up Pipelines, and I'm not sure which tutorial you are following.
Is the repo where you are trying to set this up empty (containing no commits/files)?
I have tried creating a bitbucket-pipelines.yml file in an empty repo of mine and it worked without issues, so it would be useful to have the tutorial and check the exact steps you are following.
According to the tutorial, I need a pipeline.
I think the bitbucket-pipelines.yml is needed because I wanted to trigger a scan for every PR.
I look forward to hearing from you soon.
Thanks for the link. I am not able to access that link since it seems to be the configuration settings of your own private project.
I have an account with Sonar Cloud though, and navigating to the same configuration page for my project, I can see the instructions
1. Enable Pipelines
2. Add a repository variable
3. Create a bitbucket-pipelines.yml file
Could you please let me know:
I am still unable to reproduce this error, and I can't find any similar issues reported before, so troubleshooting this may take some time, and it may be necessary to open a support ticket eventually.
If you want to set this up faster, instead of troubleshooting why this button doesn't work, I can suggest the following two workarounds:
Do any of these workarounds work for you?
Hey Community! We’re willing to wager that quite a few of you not only use Bitbucket, but administer it too. Our team is excited to share that we’ll be releasing improvements throughout this month of...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events