Azure DevOps Pipeline не копирует и не развертывает все мои проекты - PullRequest
0 голосов
/ 01 ноября 2019

Мне нужна помощь в создании конвейера сборки.

enter image description here

На этапе решения Build я делаю классическую сборку без аргументов MSBuild. Но в моем файле решений у меня много проектов. Одним из них является API, и 3 из них - это 3 клиентских приложения, одна winform, одна clickonce и один веб-клиент.

Когда я собираю локально с помощью Visual Studio из чистого решения во время сборки, Visual Studio правильно создает всеПапка bin, выпустить или отладить подпапку и опубликовать подпапку для связанных публикуемых проектов.

Когда я делаю то же самое с MSBuild из Azure DevOps Pipeline, я не знаю, что происходит. Журналы кажутся нормальными, но когда я копирую, а затем публикую свой артефакт, я получаю только несколько проектов.

Вот мой YAML

#Your build pipeline references an undefined variable named ‘Parameters.solution’. Create or edit the build pipeline for this YAML file, define the variable on the Variables tab. See https://go.microsoft.com/fwlink/?linkid=865972

#Your build pipeline references the ‘BuildPlatform’ 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 ‘BuildConfiguration’ 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: VSBuild@1

  displayName: 'Build solution *****.sln'

  inputs:

    solution: '$(Parameters.solution)'

    platform: '$(BuildPlatform)'

    configuration: '$(BuildConfiguration)'

#Your build pipeline references the ‘BuildConfiguration’ 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: CopyFiles@2

  displayName: 'Copy Files to: $(build.ArtifactStagingDirectory)'

  inputs:

    SourceFolder: '$(system.DefaultWorkingDirectory)'

    Contents: '**\bin\$(BuildConfiguration)\**'

    TargetFolder: '$(build.ArtifactStagingDirectory)'



#Your build pipeline references an undefined variable named ‘Parameters.ArtifactName’. Create or edit the build pipeline for this YAML file, define the variable on the Variables tab. See https://go.microsoft.com/fwlink/?linkid=865972



steps:

- task: PublishBuildArtifacts@1

  displayName: 'Publish Artifact: drop'

  inputs:

    PathtoPublish: '$(build.ArtifactStagingDirectory)'

    ArtifactName: '$(Parameters.ArtifactName)'

  condition: succeededOrFailed()


Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...