为工作准备代理。代理未在Devops上运行

问题描述 投票:0回答:1

我曾经使用过一个dev ops管道,因此当我推送源代码时,项目即会构建。

我正在使用托管代理。

但是现在我收到一条消息

准备工作的代理人

代理已准备好进行连接...

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.config中的第三方软件包源,但没有帮助。

.net-core azure-devops nuget-package
1个回答
1
投票

您没有做错任何事情。消息

准备工作的代理人

是我们这方面的问题。

https://status.dev.azure.com/_1es/_event/165739596?tracking_data=eyJTb3VyY2UiOiJFbWFpbCIsIlR5cGUiOiJOb3RpZmljYXRpb24iLCJTSUQiOiJ2c3Mtc3RhdHVzLnN0YXR1cy1ub3RpZmljYXRpb25yZXF1ZXN0ZWQtc3Vic2NyaXB0aW9uIiwiU1R5cGUiOiJDT04iLCJSZWNpcCI6MCwiX3hjaSI6eyJOSUQiOjAsIk1SZWNpcCI6bnVsbCwiQWN0IjoiNjI4Mjc4ZWItMGRhMC00NmM5LWJmMTMtNGVhOGQzNDY3NjYwIn0sIkVsZW1lbnQiOiJoZXJvL2N0YSJ9

这是大约1.5小时前开始出现的问题,因为我也遇到了此错误。

请稍等,我们的团队正在解决此问题,以恢复托管代理使用的正常工作。

© www.soinside.com 2019 - 2024. All rights reserved.