# What value do I use for sonar.projectBaseDir?

**URL:** <https://community.sonarsource.com/t/what-value-do-i-use-for-sonar-projectbasedir/37774>\
**Category:** SonarQube Server / Community Build\
**Tags:** azuredevops-server\
**Created:** [January 29, 2021, 2:31pm UTC](https://community.sonarsource.com/t/what-value-do-i-use-for-sonar-projectbasedir/37774 "2021-01-29T14:31:25Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![ganncamp](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/ganncamp/32/1261_2.png) [@ganncamp](https://community.sonarsource.com/u/ganncamp)\
**Post date:** [January 29, 2021, 7:28pm UTC](https://community.sonarsource.com/t/what-value-do-i-use-for-sonar-projectbasedir/37774/5 "2021-01-29T19:28:33Z")

</div>

Hi,

These may be helpful:

> [@Gitlab Merge Request: Could not find ref: dev in refs/heads, refs/remotes/upstream or refs/remotes/origin](https://community.sonarsource.com/t/gitlab-merge-request-could-not-find-ref-dev-in-refs-heads-refs-remotes-upstream-or-refs-remotes-origin/33713):
>
> Error message: Could not find ref: dev in refs/heads, refs/remotes/upstream or refs/remotes/origin This results in failure to compute coverage for our merge requests within gitlab. We have already set up the depth to a 1000 without success. sonarqube: image: name: sonarsource/sonar-scanner-cli:latest entrypoint: [""] stage: Deploy tags: - gamma - dind variables: SONAR\_USER\_HOME: "${CI\_PROJECT\_DIR}/.sonar" GIT\_DEPTH: "1000" cache: key: ${CI\_JOB\_NAME} paths: …

> [@Could not find ref 'refs/heads/master' in refs/heads, refs/remotes/upstream or refs/remotes/origin](https://community.sonarsource.com/t/could-not-find-ref-refs-heads-master-in-refs-heads-refs-remotes-upstream-or-refs-remotes-origin/37016):
>
> Hi, I’m getting the warning below when running SonarQube from within a Docker-container using Azure DevOps. Could not find ref ‘refs/heads/master’ in refs/heads, refs/remotes/upstream or refs/remotes/origin You may see unexpected issues and changes. Please make sure to fetch this ref before pull request analysis. When building the Docker container I pass the arguments at build time docker build \ --build-arg sq\_pr\_branch=/d:sonar.pullrequest.branch=refs/heads/\<branch\> \ --build-arg sq…

> [@Could not find ref 'develop/v8.14.0' in refs/heads, refs/remotes/upstream or refs/remotes/origin. You may see unexpected issues and changes. Please make sure to fetch this ref before pull request analysis](https://community.sonarsource.com/t/could-not-find-ref-develop-v8-14-0-in-refs-heads-refs-remotes-upstream-or-refs-remotes-origin-you-may-see-unexpected-issues-and-changes-please-make-sure-to-fetch-this-ref-before-pull-request-analysis/34873):
>
> which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension) SonarQube =\> 8.4.2 Sonar Scanner =\> 4.10.0.19059 Teamcity =\> 2020.1.5 what are you trying to achieve? I’m trying to achieve pull request analysis what have you tried so far to achieve this I have configured the build steps in TeamCity and performing the analysis The Pull request analysis is showing 0 issues(for all PRs) even though it is having issues. Warning showing is “Could not find ref ‘develop/v8.…

&nbsp;  
Ann

---

_[View the full topic](https://community.sonarsource.com/t/what-value-do-i-use-for-sonar-projectbasedir/37774)._
