Я создаю приложение .NET в Azure DevOps, устанавливаю его версию с помощью GitVersion через скрипт Cake, а затем собираю его. Похоже, получить номер сборки из этого значения, созданного в GitVersion. Я хочу, чтобы информационный номер сборки заполнял часть моего имени. Я использую конструктор, но для простоты использования вот файл YAML шага публикации артефакта:
#Your build pipeline references the ‘deployment.PPILDeployDirectory’ variable, which you’ve selected to be settable at queue time. Create or edit the build pipeline for this YAML file, define the variable on the Variables tab, and then select the option to make it settable at queue time. See https://go.microsoft.com/fwlink/?linkid=865971
#Your build pipeline references the ‘deployment.integration.environment’ variable, which you’ve selected to be settable at queue time. Create or edit the build pipeline for this YAML file, define the variable on the Variables tab, and then select the option to make it settable at queue time. See https://go.microsoft.com/fwlink/?linkid=865971
steps:
- task: PublishBuildArtifacts@1
displayName: 'Publish Integration Artifact copy'
inputs:
PathtoPublish: '$(deployment.PPILDeployDirectory)'
ArtifactName: '$(deployment.integration.environment)_integration_drop'
Как мне добавить суффикс ArtifactName к информационному номеру сборки (который включает информацию о ветке и сборке)? Какую переменную мне нужно взять? Есть ли другие переменные, связанные с номерами сборок, о которых мне следует знать?