# AppCenter and SonarQube Enterprise

**URL:** <https://community.sonarsource.com/t/appcenter-and-sonarqube-enterprise/29098>\
**Category:** SonarQube Server / Community Build\
**Tags:** xamarin, azuredevops-services, dotnet, scanner\
**Created:** [August 5, 2020, 1:27am UTC](https://community.sonarsource.com/t/appcenter-and-sonarqube-enterprise/29098 "2020-08-05T01:27:38Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Andres\_D](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/andres_d/32/13972_2.png) [@Andres\_D](https://community.sonarsource.com/u/Andres_D)\
**Post date:** [August 5, 2020, 1:27am UTC](https://community.sonarsource.com/t/appcenter-and-sonarqube-enterprise/29098/1 "2020-08-05T01:27:38Z")

</div>

Hello,

has anyone gotten pre-build scripts working with Microsoft AppCenter and SonarQube Enterprise? I am able to download the sonar scanner, unzip it but I am not sure how to edit the .xml file to put my host and token in it with just the pre-build script. Anyone gotten this to work?

---

<div class="post-metadata">

**Author:** ![Christophe\_Havard](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/christophe_havard/32/12373_2.png) [@Christophe\_Havard](https://community.sonarsource.com/u/Christophe_Havard)\
**Post date:** [August 7, 2020, 4:07pm UTC](https://community.sonarsource.com/t/appcenter-and-sonarqube-enterprise/29098/2 "2020-08-07T16:07:23Z")

</div>

Hello @Andres_D and welcome to our community 🙂  
In your scanner xml file you will put information that will apply everytime you use the scanner.

So, for the host you put your Sonarqube url instance (like [http://localhost:9000](http://localhost:9000)) and for the login, you can use either a classic login/password couple like the default one (login=admin & password=admin) or use a Personal Access Token as the login. In this case, you leave the password field empty.

Kind regards,  
Christophe

---

<div class="post-metadata">

**Author:** ![Andres\_D](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/andres_d/32/13972_2.png) [@Andres\_D](https://community.sonarsource.com/u/Andres_D)\
**Post date:** [January 4, 2021, 3:53pm UTC](https://community.sonarsource.com/t/appcenter-and-sonarqube-enterprise/29098/3 "2021-01-04T15:53:13Z")

</div>

I ended up using Azure Pipelines to do the scan since it was a lot easier to get the SonarQube connection from there than in a post deployment script in App Center.

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/system/32/31083_2.png) [@system](https://community.sonarsource.com/u/system)\
**Post date:** [February 1, 2021, 2:58pm UTC](https://community.sonarsource.com/t/appcenter-and-sonarqube-enterprise/29098/4 "2021-02-01T14:58:41Z")

</div>

Closed on February 1, 2021, 2:58pm UTC

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.
