Browse Source

SONAR-16164 Document new scanner parameter 'sonar.newCode.referenceBranch'

tags/9.4.0.54424
Duarte Meneses 2 years ago
parent
commit
6a65e721a7

+ 2
- 2
server/sonar-docs/src/pages/analysis/analysis-parameters.md View File

@@ -77,7 +77,7 @@ Key | Description | Default
`sonar.scm.revision`| Overrides the revision, for instance the Git sha1, displayed in analysis results. By default value is provided by the CI environment or guessed by the checked-out sources.|
`sonar.buildString`| The string passed with this property will be stored with the analysis and available in the results of `api/project_analyses/search`, thus allowing you to later identify a specific analysis and obtain its ID for use with `api/project_analyses/set_baseline`. | |
`sonar.analysis.[yourKey]`| This property stub allows you to insert custom key/value pairs into the analysis context, which will also be passed forward to [webhooks](/project-administration/webhooks/). | |
`sonar.newCode.referenceBranch`| Defines the new code period for this branch to use the given branch as a reference branch, overriding the server's setting. See [New Code Period](/project-administration/new-code-period/).

### Duplications
Key | Description | Default
@@ -106,4 +106,4 @@ Key | Description | Default

Key | Description
---|----|---
`sonar.links.scm_dev` **![](/images/cross.svg)Deprecated since SQ 7.1** | Developer connection. | `<scm><developerConnection>` for Maven projects
`sonar.links.scm_dev` **![](/images/cross.svg)Deprecated since SQ 7.1** | Developer connection. | `<scm><developerConnection>` for Maven projects

+ 1
- 1
server/sonar-docs/src/pages/project-administration/new-code-period.md View File

@@ -35,7 +35,7 @@ You can define New Code as changes from a previous version, a specific analysis,

- **Reference Branch** – Choose a specific branch to define your New Code. Any changes made from your reference branch are considered New Code.

Available at the project and branch level.
Available at the project and branch level. You can also specify a reference branch using a scanner parameter, overriding the server's definition. See the [Scanner Analysis Parameters](/analysis/analysis-parameters/).

- **Number of days** – Specify a number of days for a floating New Code period. For example, setting **Number of Days** to 30 creates a floating New Code period beginning 30 days from the current date.
Available at the global, project, and branch level.

Loading…
Cancel
Save