CircleCI错误将配置迁移到版本2

时间:2019-01-20 22:45:28

标签: migration bitbucket circleci migrating

我正在尝试将circleci 1.0迁移到2.0, 我得到了这个错误。 “构建”作业中:步骤不是列表 有人可以帮我什么原因吗?

version: 2
jobs:
  build:
    docker:
      - image: circleci/ruby:2.2.3-jessie
    environment:
      AWS_REGION: eu-central-1
    steps:
        - checkout
        - run: echo "Tests are skipped because of static site."
        - run: mkdir -p /tmp/test-data

deploy:
  production:
    branch: master
    commands:
      - bundle exec middleman s3_sync

1 个答案:

答案 0 :(得分:0)

下面阵列的identation steps似乎是关闭。试试这个:

steps:
  - checkout
  - run: echo "Tests are skipped because of static site."
  - run: mkdir -p /tmp/test-data