# How to setup sonarqube inside aws codebuild

**URL:** <https://community.sonarsource.com/t/how-to-setup-sonarqube-inside-aws-codebuild/10949>\
**Category:** SonarQube Cloud\
**Created:** [June 19, 2019, 2:18am UTC](https://community.sonarsource.com/t/how-to-setup-sonarqube-inside-aws-codebuild/10949 "2019-06-19T02:18:31Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Muthu](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/muthu/32/4689_2.png) [@Muthu](https://community.sonarsource.com/u/Muthu)\
**Post date:** [June 19, 2019, 2:18am UTC](https://community.sonarsource.com/t/how-to-setup-sonarqube-inside-aws-codebuild/10949/1 "2019-06-19T02:18:31Z")

</div>

i want to setup sonarqube inside aws codebuild for devops pipeline. i am using dotnet proejct and i want to setup code quality in sonarqube using aws codebuild in aws environment.

---

<div class="post-metadata">

**Author:** ![janos](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/janos/32/60_2.png) [@janos](https://community.sonarsource.com/u/janos)\
**Post date:** [June 19, 2019, 4:27pm UTC](https://community.sonarsource.com/t/how-to-setup-sonarqube-inside-aws-codebuild/10949/2 "2019-06-19T16:27:06Z")

</div>

What SonarScanner do you usually use with your project?  
You will just have to run it as usual in the CI, configuring using the yml configuration file for that CI tool. We don’t have specific documentation about this integration.  
Here is an example with Scanner for Maven:

> [@Is it possible to integrate Sonarqube with AWS codepipeline/codebuild](https://community.sonarsource.com/t/is-it-possible-to-integrate-sonarqube-with-aws-codepipeline-codebuild/1212):
>
> Is it possible to integrate Sonarqube with AWS codepipeline/codebuild

---

<div class="post-metadata">

**Author:** ![Muthu](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/muthu/32/4689_2.png) [@Muthu](https://community.sonarsource.com/u/Muthu)\
**Post date:** [June 25, 2019, 10:35pm UTC](https://community.sonarsource.com/t/how-to-setup-sonarqube-inside-aws-codebuild/10949/3 "2019-06-25T22:35:47Z")

</div>

i am able push the package into sonar qube and my project is displayed in sonar dashboard.  
but i am not able to see the issues like unused variables, duplicate files, etc into my sonar dashboard.  
iam using the below command

dotnet tool install --global dotnet-sonarscanner --version 3.3  
dotnet sonarscanner begin /k:$SONAR\_PROJECT\_KEY /n:$SONAR\_PROJECTNAME /v:$SONAR\_PROJECTVERSION /d:sonar.host.url=$SONAR\_HOST /d:sonar.login=$SONAR\_LOGIN /d:sonar.verbose=true /d:sonar.sources=$CODEBUILD\_SRC\_DIR /d:sonar.home=$CODEBUILD\_SRC\_DIR  
dotnet sonarscanner begin /k:$SONAR\_PROJECT\_KEY /d:sonar.host.url=$SONAR\_HOST /d:sonar.verbose=true  
dotnet build  
dotnet test /p:CollectCoverage=true /p:CoverletOutputFormat=opencover  
dotnet sonarscanner end /d:sonar.login=$SONAR\_LOGIN

---

<div class="post-metadata">

**Author:** ![janos](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/janos/32/60_2.png) [@janos](https://community.sonarsource.com/u/janos)\
**Post date:** [June 28, 2019, 3:22pm UTC](https://community.sonarsource.com/t/how-to-setup-sonarqube-inside-aws-codebuild/10949/4 "2019-06-28T15:22:00Z")

</div>

> [@Muthu](#):
>
> but i am not able to see the issues like unused variables, duplicate files, etc into my sonar dashboard.  
> iam using the below command

Are you sure there should be something to see? Can you provide a code snippet where you would expect some issues?

Are you able to see any issues at all?

Can you please share the output of the scanner commands you executed?

Can you please share the link to the project on SonarCloud?

If the code and the project are private let me know, we can move to a private thread.

---

<div class="post-metadata">

**Author:** ![janos](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/janos/32/60_2.png) [@janos](https://community.sonarsource.com/u/janos)\
**Post date:** [May 27, 2020, 7:05pm UTC](https://community.sonarsource.com/t/how-to-setup-sonarqube-inside-aws-codebuild/10949/5 "2020-05-27T19:05:02Z")

</div>

A post was split to a new topic: [How to integrate sonar scanner with AWS code build](https://community.sonarsource.com/t/how-to-integrate-sonar-scanner-with-aws-code-build/25348)
