Tuesday, June 8, 2021

Publish your github project to sonarcloud.io

 1). Go to sonarcloud.io and click on the "+" icon at the top of the screen.


2). Then click on the Choose an organization on GitHub

3). You will be redirected to your GitHub account and from there you have to select the repository which include your project.(From here you will give permissions to SonarCloud, to access the repositorys)



4). Then you will re-direct to SonarCloud and you will see something similar to this.

5). Select with GitHub actions

6). Then will navigate to an instruction page.

7). Follow the 1st instruction as it is.

8). Add below aditionl command to the build.gradle file. (Source can be any thing,This can be different based on your project structure)
property "sonar.sources", "."

After step 8 I had only sonar related things in my build.gradle file, Becouse I had few errors when try to update my existing build.gradle file with sonar settings.

9). Next follow the 2nd step. If you don't have a workflows folder inside .github, please create it manually and just copy and paste the content as it is.


10). Then do some changes to any of your code and make a commit.

11). Navigate to Actions menu.


12). Because of your commit, an action should be triggered.

13). If all the above steps are correct you should see the build log and there should not be any errors.


14). Finally, navigate back to https://sonarcloud.io/  you should see the dashboard with all the details.











1 comment:

  1. Hi Chathura,

    Do you know info on how to tackle SRP_A and PASSWORD_CLAIM_SIGNATURE while testing AWS Cognito in JMeter ? Any sample JMX to share ?

    Thanks.
    Ashwani

    ReplyDelete