# How do I disable autoscan when analyzing a new project?

**URL:** <https://community.sonarsource.com/t/how-do-i-disable-autoscan-when-analyzing-a-new-project/21036>\
**Category:** SonarQube Cloud\
**Tags:** autoscan\
**Created:** [March 3, 2020, 7:14pm UTC](https://community.sonarsource.com/t/how-do-i-disable-autoscan-when-analyzing-a-new-project/21036 "2020-03-03T19:14:58Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![rayharris](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/rayharris/32/9204_2.png) [@rayharris](https://community.sonarsource.com/u/rayharris)\
**Post date:** [March 3, 2020, 7:14pm UTC](https://community.sonarsource.com/t/how-do-i-disable-autoscan-when-analyzing-a-new-project/21036/1 "2020-03-03T19:14:58Z")

</div>

When I import a new repo from GitHub into SonarCloud, I get a screen stating that Sonar is checking for compatibility with AutoScan and then it starts automatically scanning the repo.

I do not want AutoScan. I plan on using Travis CI to scan the project as I need code coverage and test execution results.

How do I prevent SonarCloud from automatically setting up AutoScan?

---

<div class="post-metadata">

**Author:** ![benoit](https://avatars.discourse-cdn.com/v4/letter/b/5daacb/32.png) [@benoit](https://community.sonarsource.com/u/benoit)\
**Post date:** [March 4, 2020, 8:32am UTC](https://community.sonarsource.com/t/how-do-i-disable-autoscan-when-analyzing-a-new-project/21036/2 "2020-03-04T08:32:48Z")

</div>

Hi,

Please see this similar topic:

> [@How to disable auto scan](https://community.sonarsource.com/t/how-to-disable-auto-scan/20941/2):
>
> Hello @monsam, To turn off Autoscan you can go to Administration \> Automatic Analysis on your project page on SonarCloud. There you will find a toggle to turn off the Automatic Analysis. Hope that helps, Tom

Benoit

---

<div class="post-metadata">

**Author:** ![benoit](https://avatars.discourse-cdn.com/v4/letter/b/5daacb/32.png) [@benoit](https://community.sonarsource.com/u/benoit)\
**Post date:** [March 4, 2020, 8:32am UTC](https://community.sonarsource.com/t/how-do-i-disable-autoscan-when-analyzing-a-new-project/21036/3 "2020-03-04T08:32:51Z")

</div>

Closed on March 4, 2020, 8:32am UTC



---

<div class="post-metadata">

**Author:** ![benoit](https://avatars.discourse-cdn.com/v4/letter/b/5daacb/32.png) [@benoit](https://community.sonarsource.com/u/benoit)\
**Post date:** [March 4, 2020, 8:54am UTC](https://community.sonarsource.com/t/how-do-i-disable-autoscan-when-analyzing-a-new-project/21036/4 "2020-03-04T08:54:00Z")

</div>

Opened on March 4, 2020, 8:54am UTC



---

<div class="post-metadata">

**Author:** ![benoit](https://avatars.discourse-cdn.com/v4/letter/b/5daacb/32.png) [@benoit](https://community.sonarsource.com/u/benoit)\
**Post date:** [March 4, 2020, 9:28am UTC](https://community.sonarsource.com/t/how-do-i-disable-autoscan-when-analyzing-a-new-project/21036/5 "2020-03-04T09:28:52Z")

</div>

Hi again,

Note that it’s currently not possible to cancel/disable autoscan when you first create your project. The first analysis will be automatically launched.

We’re going to provide a way to immediately deactivate AutoScan, but I can’t tell you yet when it will be available.

HTH,

Benoit

---

<div class="post-metadata">

**Author:** ![rayharris](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/rayharris/32/9204_2.png) [@rayharris](https://community.sonarsource.com/u/rayharris)\
**Post date:** [March 4, 2020, 2:26pm UTC](https://community.sonarsource.com/t/how-do-i-disable-autoscan-when-analyzing-a-new-project/21036/6 "2020-03-04T14:26:24Z")

</div>

This does not help. That first analysis becomes the baseline that all subsequent analyses are measured against. As our sonar-project.properties file is not read during the AutoScan, the baseline is now wrong.

Please consider disabling the immediate AutoScan for all projects until there is a way to opt out before adding a project. This has completely stopped our onboarding of about 75 repos into our paid org.

---

<div class="post-metadata">

**Author:** ![Fabrice\_Bellingard](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/fabrice_bellingard/32/39_2.png) [@Fabrice\_Bellingard](https://community.sonarsource.com/u/Fabrice_Bellingard)\
**Post date:** [March 11, 2020, 10:36am UTC](https://community.sonarsource.com/t/how-do-i-disable-autoscan-when-analyzing-a-new-project/21036/7 "2020-03-11T10:36:30Z")

</div>

> [@rayharris](#):
>
> As our sonar-project.properties file is not read during the AutoScan, the baseline is now wrong.

Hi Ray, from what you’re saying, you are moving from a SonarQube instance to SonarCloud, is that correct? Maybe we could detect such case (= when there is a `sonar-project.properties` file), and not activate AutoScan. @TomVanBraband and @SiegfriedEhret, what’s your feeling about this potential improvement?

Note that you should not worry about setting a wrong baseline. You can always remove analyses from the project history (in the “Activity” page of the project), so in your case the first one(s) done by AutoScan.

---

<div class="post-metadata">

**Author:** ![rayharris](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/rayharris/32/9204_2.png) [@rayharris](https://community.sonarsource.com/u/rayharris)\
**Post date:** [March 11, 2020, 12:09pm UTC](https://community.sonarsource.com/t/how-do-i-disable-autoscan-when-analyzing-a-new-project/21036/8 "2020-03-11T12:09:23Z")

</div>

We were planning on using SonarQube as our code was originally on a GitHub Enterprise instance. Before we got the license, a re-org happened and we moved all of our code to GitHub.

I’m an admin for our SonarCloud org. I went to the Activity tab of several of our projects. The gear icon had an option to “Create Custom Event” and the pencil icon would let me change the version. I didn’t see any option to delete the scan.

---

<div class="post-metadata">

**Author:** ![rayharris](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/rayharris/32/9204_2.png) [@rayharris](https://community.sonarsource.com/u/rayharris)\
**Post date:** [March 11, 2020, 12:13pm UTC](https://community.sonarsource.com/t/how-do-i-disable-autoscan-when-analyzing-a-new-project/21036/9 "2020-03-11T12:13:40Z")

</div>

This is what I see after importing a new project and then disabling AutoScan after it finishes.

 ![Screen Shot 2020-03-11 at 8.12.30 AM](https://europe1.discourse-cdn.com/sonarsource/uploads/sonarcommunity/original/2X/d/d7fc51984fbc2350111e79d804a354ae36355c0b.png)

---

<div class="post-metadata">

**Author:** ![Fabrice\_Bellingard](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/fabrice_bellingard/32/39_2.png) [@Fabrice\_Bellingard](https://community.sonarsource.com/u/Fabrice_Bellingard)\
**Post date:** [March 18, 2020, 2:18pm UTC](https://community.sonarsource.com/t/how-do-i-disable-autoscan-when-analyzing-a-new-project/21036/10 "2020-03-18T14:18:39Z")

</div>

You don’t see the action because you have only 1 analysis. As soon as you get at least 2, you will be able to see it:

 ![image](https://europe1.discourse-cdn.com/sonarsource/uploads/sonarcommunity/original/2X/a/adaff252ad250ff6604aadad91f646b29855ce18.png)
