简体   繁体   English

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

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

I have created a build-pipeline.yml file for my project, so that my application can be built automatically in azure devops. 我已经为我的项目创建了一个build-pipeline.yml文件,以便可以在azure devops中自动构建我的应用程序。

fistly I have created a pipeline with devops UI, that works very well. 首先,我用devops UI创建了一个管道,效果很好。

so I have copyed all yml from jobs, which I have created with UI. 因此,我从用UI创建的作业中复制了所有yml。

and then I have created a new Pipeline with this yml file and run this pipeline, but I got some problems at the beginning: 然后我用这个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.



my yaml file looks just like this: 我的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

so I have googled, but I have not found any useful solutions. 所以我已经用Google搜索,但是没有找到任何有用的解决方案。 may be you can help me. 也许你可以帮助我。

It just looks like your pool needs updating. 看起来您的pool需要更新。 Choose from this list: Hosted Agent Pools Example 从此列表中选择: 托管代理程序池示例

pool:
  vmImage: vs2017-win2016

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

相关问题 请参阅使用 YAML 管道在 Azure DevOps 中构建工件 - See Build Artifacts in Azure DevOps with YAML Pipeline Azure DevOps 管道 yaml 文件 Docker 标签 - Azure DevOps Pipeline yaml file Docker Tag 有没有办法使用 Azure Devops 将 yaml 构建管道转换为发布管道? - Is there a way to translate a yaml build pipeline to a release pipeline using Azure Devops? Azure DevOps - 在 Azure YAML 管道的 React 构建中删除文件夹为空 - Azure DevOps - Drop folder empty in React build for Azure YAML pipeline stage 关键字是否在 YAML 文件中的 Azure DevOps 中定义构建或部署管道 - Does the stage keyword define a Build or Deploy pipeline in Azure DevOps in YAML file Azure DevOps 无法触发 yaml 管道关闭完成的构建 - Azure DevOps unable to trigger yaml pipeline off of completed build Azure DevOps - 使用 GUI 而不是 YAML 来编辑构建管道 - Azure DevOps - use GUI instead of YAML to edit build pipeline Azure Devops 管道 Yaml“切换块评论”不起作用 - Azure Devops pipeline Yaml 'Toggle Block Comment' not working 从 Azure DevOps 管道 YAML 文件运行 `az artificats` 命令 - Running `az artificats` commands from Azure DevOps pipeline YAML file 在 Azure Devops 发布管道中更改 yaml 文件的分支 - Changing the branch of the yaml file in an Azure Devops Release Pipeline
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM