Подготовка агента к работе. Агент не работает на Devops - PullRequest
0 голосов
/ 06 января 2020

У меня есть конвейер dev ops, который работал, так что когда я извлекаю исходный код sh, проект создается.

Я использую размещенные агенты.

Однако в в тот момент, когда я получаю сообщение

Подготовка агента к работе

Агент готов к работе Подключение ...

An agent is ready for the job

и больше ничего не происходит. Если я щелкну Сводка, то увижу, что конвейер сборки не запущен.

Я думаю, что это может быть связано с тем, что сторонний источник нестандартного пакета 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. конфиг но это не помогло.

1 Ответ

1 голос
/ 06 января 2020

Вы не сделали ничего плохого. Сообщение

Подготовка агента к работе

- это проблема с нашей стороны.

enter image description here

Эта проблема возникла примерно через 1,5 часа go, потому что я также столкнулся с этой ошибкой.

Просто подождите некоторое время, наша команда исправит эту проблему, чтобы восстановить нормальную работу Hosted использование агента.

Для пользователей publi c, пожалуйста, перейдите по этой ссылке, чтобы получить объявление о событии: https://status.dev.azure.com/_history. (Похоже, он не был обновлен до publi c из-за задержки).

...