I’m trying to run the same job multiple times.
I took the example from the official documentation (see https://circleci.com/docs/2.0/reusing-config/#invoking-the-same-job-multiple-times) (added the jobs section).
version: 2.1
jobs:
loadsay:
machine: true
steps:
- run: echo "hi"
sayhello:
machine: true
steps:
- run: echo "hello"
saygoodbye:
machine: true
steps:
- run: echo "bye"
workflows:
version: 2
build:
jobs:
- loadsay
- sayhello:
requires:
- loadsay
- sayhello:
name: SayHelloChad
- saygoodbye:
requires:
- SayHelloChad
The workflow does not start and return the following error:
We weren’t able to start this workflow.
Encountered errors trying to create workflows from this config: Config does not conform to schema: {:workflows {:build {:jobs [nil nil {:sayhello {:name disallowed-key}} nil]}}}For more examples see the Workflows documentation.
Any idea why?