SonarSource / sonar-dotnet

Code analyzer for C# and VB.NET projects
https://redirect.sonarsource.com/plugins/csharp.html
GNU Lesser General Public License v3.0
752 stars 223 forks source link

Azure Pipelines: set the build number in the AP build name #2881

Open andrei-epure-sonarsource opened 4 years ago

andrei-epure-sonarsource commented 4 years ago

Description

We want our internal build number (which shows up in Burgr and is used to version the assemblies) to be shown in Azure Pipelines

image image

pavel-mikula-sonarsource commented 2 years ago

We can customize build name (the #20191211.2 part) only with tokens and variables, see docs. So we can show 13324 but we can't show 8.1.0 prefix :(

I haven't found if/how the commit message is appended and if that can be customized.

I haven't found if there's another way how to show additional information on the summary page.

Workaround:

Build version is visible in the pipeline run / Build: stage / Artifacts / NuGetPackages - version is part of the file name