为什么我在Concourse遇到这个错误?错误:未配置任何步骤



我是concourse的新手,正试图用它来制作一个terraform ci平台,但我不明白为什么我在第一个管道上会出现这个错误,有人能帮我吗?

jobs:
- name: terraform-pipeline
serial: true
plan:
- aggregate:
- get: master-branch
trigger: true 
- get: common-tasks
params: { submodules: [ terraform ] }
trigger: true
- task: terraform-plan
file: common-tasks/terraform/0.12.29.yml
input_mapping: { source: master-branch }
params:
command: plan
cache: true
access_key: ((aws-access-key))
secret_key: ((aws-secret-key))
directory: master-branch/terraform-poc/dev

resources:
- name: master-branch
type: git
source:
uri: https://github.com/rossrollin/terraform-poc
branch: master
- name: common-tasks
type: git
source:
uri: https://github.com/telia-oss/concourse-tasks.git
branch: master

像这样执行管道:

fly -t concourse-poc sp -p terraform-pipeline -c pipeline2.yml -v aws-access-key=''-v aws-secret-key=''
error: error unmarshaling JSON: while decoding JSON: no step configured

aggregate步骤在5.2.0版本中已弃用,在7.0.0版本中已删除。

您需要将其替换为新的in_parallel步骤。

-      - aggregate:
+      - in_parallel:

删除'-aggregate:'并仅运行resource-get的内联就解决了我的问题。

最新更新