Thanks for replying!
- I followed the instructions under “administration” → “analysis method” → “Travis-CI”. This led me to running “travis encrypt” against a key, and the results were placed into .travis.yml. I then clicked on “C++” as my project type and followed those instructions, making sure the .travis.yml file builds the project properly. sonar-project.properties was also updated.
- I went to my repository settings and verified that there are no secrets set (SONAR_TOKEN is unset in the repository).
I’m assuming that SONAR_TOKEN should remain unset as the authentication method is using the secure token provided in .travis.yml. Otherwise, the implementation guide should have told me to set it. Do I need to set this?
EDIT: I just went through the setup documentation as above once again and update .travis.yml. The issue continues to occur.
EDIT2: I just added the SONAR_TOKEN to the travis environment variables, and it is still giving the same error.
EDIT3: I recreated a new token, submitted it, and made sure my user account has explicit “Execute Analysis” permission. The scan still fails with the unauthorized error, regardless of if the SONAR_TOKEN is set in the travis settings. I have been fiddling with this for the better part of a year now, so there’s no telling what settings I’ve botched up with this.