【问题标题】:Config Processing error circle-ci when I do build构建时配置处理错误circle-ci
【发布时间】:2020-10-22 07:50:14
【问题描述】:

我遇到了配置处理错误 (circle-ci) 的问题。

我使用的材料

  • AWS 云前端
  • aws s3
  • 圆-ci

情况

我确实在 AWS 上进行了设置,并为环境变量 (circle-ci) 添加了价值。我确实在 git 上提交并在 circle-ci 上构建,但发生错误,我无法摆脱此错误。

这是我的repo

错误

 bin/sh -eo pipefail
     ERROR IN CONFIG FILE:
     [#/jobs] 8 schema violations found
     Any string key is allowed as job name.
     1. [#/jobs/deploy-to-aws-cloudfront] 0 subschemas matched instead of one
     |   1. [#/jobs/deploy-to-aws-cloudfront] only 1 subschema matches out of 2
     |   |   1. [#/jobs/deploy-to-aws-cloudfront] 3 schema violations found
     |   |   |   1. [#/jobs/deploy-to-aws-cloudfront] required key [steps] not found
     |   |   |   2. [#/jobs/deploy-to-aws-cloudfront/docker/0] 2 schema violations found
     |   |   |   |   1. [#/jobs/deploy-to-aws-cloudfront/docker/0] extraneous key [steps] is not permitted
     |   |   |   |   |   Permitted keys:
     |   |   |   |   |     - image
     |   |   |   |   |     - name
     |   |   |   |   |     - entrypoint
     |   |   |   |   |     - command
     |   |   |   |   |     - user
     |   |   |   |   |     - environment
     |   |   |   |   |     - aws_auth
     |   |   |   |   |     - auth
     |   |   |   |   |   Passed keys:
     |   |   |   |   |     - image
     |   |   |   |   |     - working_directory
     |   |   |   |   |     - steps
     |   |   |   |   2. [#/jobs/deploy-to-aws-cloudfront/docker/0] extraneous key [working_directory] is not permitted
     |   |   |   |   |   Permitted keys:
     |   |   |   |   |     - image
     |   |   |   |   |     - name
     |   |   |   |   |     - entrypoint
     |   |   |   |   |     - command
     |   |   |   |   |     - user
     |   |   |   |   |     - environment
     |   |   |   |   |     - aws_auth
     |   |   |   |   |     - auth
     |   |   |   |   |   Passed keys:
     |   |   |   |   |     - image
     |   |   |   |   |     - working_directory
     |   |   |   |   |     - steps
     |   2. [#/jobs/deploy-to-aws-cloudfront] expected type: String, found: Mapping
     |   |   Job may be a string reference to another job
     2. [#/jobs/deploy-to-aws-s3] 0 subschemas matched instead of one
     |   1. [#/jobs/deploy-to-aws-s3] only 1 subschema matches out of 2
     |   |   1. [#/jobs/deploy-to-aws-s3] 3 schema violations found
     |   |   |   1. [#/jobs/deploy-to-aws-s3] required key [steps] not found
     |   |   |   2. [#/jobs/deploy-to-aws-s3/docker/0] 2 schema violations found
     |   |   |   |   1. [#/jobs/deploy-to-aws-s3/docker/0] extraneous key [steps] is not permitted
     |   |   |   |   |   Permitted keys:
     |   |   |   |   |     - image
     |   |   |   |   |     - name
     |   |   |   |   |     - entrypoint
     |   |   |   |   |     - command
     |   |   |   |   |     - user
     |   |   |   |   |     - environment
     |   |   |   |   |     - aws_auth
     |   |   |   |   |     - auth
     |   |   |   |   |   Passed keys:
     |   |   |   |   |     - image
     |   |   |   |   |     - working_directory
     |   |   |   |   |     - steps
     |   |   |   |   2. [#/jobs/deploy-to-aws-s3/docker/0] extraneous key [working_directory] is not permitted
     |   |   |   |   |   Permitted keys:
     |   |   |   |   |     - image
     |   |   |   |   |     - name
     |   |   |   |   |     - entrypoint
     |   |   |   |   |     - command
     |   |   |   |   |     - user
     |   |   |   |   |     - environment
     |   |   |   |   |     - aws_auth
     |   |   |   |   |     - auth
     |   |   |   |   |   Passed keys:
     |   |   |   |   |     - image
     |   |   |   |   |     - working_directory
     |   |   |   |   |     - steps
     |   2. [#/jobs/deploy-to-aws-s3] expected type: String, found: Mapping
     |   |   Job may be a string reference to another job
     
     -------
     Warning: This configuration was auto-generated to show you the message above.
     Don't rerun this job. Rerunning will have no effect.
    false

【问题讨论】:

    标签: yaml circleci


    【解决方案1】:

    Config 处理错误的原因是忽略了 circle-ci 上的架构。 就我而言,这是一个缩进错误。

    https://github.com/CircleCI-Public/circleci-cli/issues/326

    这篇文章对解决我的错误很有帮助。

    【讨论】:

      猜你喜欢
      • 2021-01-31
      • 1970-01-01
      • 1970-01-01
      • 2022-06-17
      • 2019-05-15
      • 1970-01-01
      • 2014-01-09
      • 1970-01-01
      • 2021-12-21
      相关资源
      最近更新 更多