无效的步骤结构 [英] Invalid step structure

查看:68
本文介绍了无效的步骤结构的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我认为在阅读 CircleCi工作流程文档之后,我的配置是有效的,但是我仍然收到下面的错误。我的配置有什么问题?

I believe my configuration is valid after reading the CircleCi workflow documentation but I am still getting the error below. What is wrong with my configuration?

这是我的工作流程配置:

Here is my workflow configuration:

workflows:
  version: 2
  build_assemble_deploy:
    jobs:
      - build
      - assemble:
          requires:
            - build
          filters:
            branches:
              only: master
      - deploy:
          requires:
            - assemble
          filters:
            branches:
              only: master

这是CircleCi给我的完整错误:

And here is the full error CircleCi gives me:


Build-agent版本0.1.799-f865b43f(2018-10-11T12:48:06 + 0000)
配置错误:发生1个错误:

Build-agent version 0.1.799-f865b43f (2018-10-11T12:48:06+0000) Configuration errors: 1 error occurred:


  • 在步骤2中定义:无效的步骤结构(预期的字符串或
    映射,得到config.StepDescription)


推荐答案

工作流程配置为f我的问题出在步骤2的定义中,在本例中为 assemble 作业的定义。在配置中的 job:> assemble:下找到该定义。

The workflow configuration is fine. The issue is in the definition of step 2, in this case the definition of the assemble job. The definition is found in the configuration under job: > assemble:.

在这种情况下,问题是额外的-字符。这是配置:

In this case the issue was an extra - character. This was the configuration:

- attach_workspace:
    - at: ~/dir

正确的配置是:

- attach_workspace:
    at: ~/dir

这篇关于无效的步骤结构的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆