У меня есть конвейер dev ops, который работал, так что когда я извлекаю исходный код sh, проект создается.
Я использую размещенные агенты.
Однако в в тот момент, когда я получаю сообщение
Подготовка агента к работе
Агент готов к работе Подключение ...
![An agent is ready for the job](https://i.stack.imgur.com/oYUbm.gif)
и больше ничего не происходит. Если я щелкну Сводка, то увижу, что конвейер сборки не запущен.
Я думаю, что это может быть связано с тем, что сторонний источник нестандартного пакета nuget находится в автономном режиме, и я пытаюсь устранить неполадки.
Вот azure -pipelines.yml
pool:
vmImage: 'VS2017-Win2016'
variables:
buildConfiguration: 'Debug'
steps:
- task: DotNetCoreInstaller@0
displayName: 'Use .NET Core sdk 2.1.5'
inputs:
version: 2.1.403
- task: NuGetToolInstaller@0
- task: NuGetCommand@2
inputs:
restoreSolution: '**\*.sln'
feedsToUse: config
nugetConfigPath: 'MyApi/mynuget.config'
- task: DotNetCoreCLI@2
displayName: Restore
inputs:
command: restore
projects: '**/Api*.csproj'
#Your build pipeline references an undefined variable named ‘Parameters.projects’. 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 ‘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
- task: DotNetCoreCLI@2
displayName: Build
inputs:
projects: '$(Parameters.projects)'
arguments: '--configuration $(BuildConfiguration)'
#Your build pipeline references an undefined variable named ‘Parameters.projects’. 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 ‘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
- task: DotNetCoreCLI@2
displayName: Publish
inputs:
command: publish
publishWebProjects: false
projects: '$(Parameters.projects)'
arguments: '--configuration $(BuildConfiguration) --output $(build.artifactstagingdirectory)'
- task: PublishBuildArtifacts@1
displayName: 'Publish Artifact'
inputs:
PathtoPublish: '$(build.artifactstagingdirectory)'
Вот mynuget.config (обфусцировано)
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<packageRestore>
<add key="enabled" value="True" />
<add key="automatic" value="True" />
</packageRestore>
<activePackageSource>
<add key="nuget.org" value="https://api.nuget.org/v3/index.json" />
</activePackageSource>
<packageSources>
<add key="nuget.org" value="https://api.nuget.org/v3/index.json" protocolVersion="3" />
<add key="3rdparty" value="http://nuget.devweb.3rdparty/nuget" />
<add key="SBDCommonFeed@Local" value="https://pkgs.dev.azure.com/myproject/_packaging/myfeedFeed@Local/nuget/v3/index.json" />
<!-- Others -->
</packageSources>
<packageSourceCredentials>
<!-- secret stuff -->
</packageSourceCredentials>
</configuration>
Я попытался закомментировать сторонний источник пакета в mynuget. конфиг но это не помогло.