繁体   English   中英

Azure devops使用Yaml文件无法构建管道

[英]Azure devops build pipeline with yaml file not working

我已经为我的项目创建了一个build-pipeline.yml文件,以便可以在azure devops中自动构建我的应用程序。

首先,我用devops UI创建了一个管道,效果很好。

因此,我从用UI创建的作业中复制了所有yml。

然后我用这个yml文件创建了一个新的Pipeline并运行了该管道,但是一开始我遇到了一些问题:


##[warning]There was a failure in sending the provision message: Unexpected response code from remote provider InternalServerError
,##[warning]There was a failure in sending the provision message: Unexpected response code from remote provider InternalServerError
,##[warning]There was a failure in sending the provision message: Unexpected response code from remote provider InternalServerError
,##[error]Provisioning request delayed or failed to send 3 time(s). This is over the limit of 3 time(s).

Pool: Azure Pipelines
Started: Today at 10:07
Duration: <1s

Job preparation parameters
1 queue time variable used
system.debug : false


Report build status
<1s
Set build status for commit e720d4.



我的yaml文件如下所示:

pool:
  name: Azure Pipelines
steps:
- task: Docker@0
  displayName: 'build image'
  inputs:
    azureSubscription: 'TOOL'
    azureContainerRegistry: '{"loginServer":"abc.azurecr.io", "id" : "/subscriptions/a03e9b30-9b04-4e89-b366-117b3d6bf17e/resourceGroups/abcrg/providers/Microsoft.ContainerRegistry/registries/abcacr"}'

- task: Docker@0
  displayName: 'push image'
  inputs:
    azureSubscription: 'RCTOOL'
    azureContainerRegistry: '{"loginServer":"abctoolacr.azurecr.io", "id" : "/subscriptions/a03e9b30-9b04-4ed5-b3898-117b3d6bf17e/resourceGroups/abc-acr-rg/providers/Microsoft.ContainerRegistry/registries/abctoolacr"}'
    action: 'Push an image'

- task: HelmInstaller@0
  displayName: 'Install Helm '

- task: HelmDeploy@0
  displayName: 'Package Helm chart'
  inputs:
    azureSubscription: 'RCTOOL'
    azureResourceGroup: 'abc-rctool-k8s-rg'
    kubernetesCluster: 'abc-rctool-k8s'
    command: package
    chartPath: config/helm/eqcockpit

- task: PublishPipelineArtifact@1

所以我已经用Google搜索,但是没有找到任何有用的解决方案。 也许你可以帮助我。

看起来您的pool需要更新。 从此列表中选择: 托管代理程序池示例

pool:
  vmImage: vs2017-win2016

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM