CircleCI "config has no workflows" / no jobs run
A pipeline triggered but no job ran. In config 2.1 a job only runs when a workflow references it; without a workflows block (or with an empty one), there is nothing to schedule.
What this error means
The pipeline shows no jobs, or validation warns that the config has jobs but no workflow references them.
CircleCI
* Config does not conform to schema:
- At least one workflow must be defined, or jobs must be referenced from a workflow.Common causes
No workflows block
The config defines jobs but omits the workflows key, so CircleCI has no entry point to run anything.
A workflow that references no jobs
The workflows block exists but its job list is empty or commented out, so nothing executes.
How to fix it
Reference jobs from a workflow
- Add a top-level
workflowskey. - List each job that should run under a named workflow.
- Add
requires:to order dependent jobs.
.circleci/config.yml
workflows:
ci:
jobs:
- build
- test:
requires: [build]Validate the config
Validation confirms at least one workflow references your jobs.
Terminal
circleci config validateHow to prevent it
- Add every job to a workflow so it actually runs.
- Keep
requires:graphs acyclic and complete. - Validate config so an empty workflow is caught early.
Related guides
CircleCI "Cannot find a job named X" workflow errorFix CircleCI "Error calling workflow ... Cannot find a job named X" - a workflow lists a job that is not defi…
CircleCI "Skipping pipeline: config has errors" messageFix CircleCI "Skipping pipeline: the configuration file for this project has errors" - a push triggered no pi…
CircleCI "Config does not conform to schema" errorFix CircleCI "Config does not conform to schema" - the YAML parses but a key is unknown, mistyped, or has the…