I have a task to run a process for different branches when files in a folder are changed. In the same branch, I need to run several path-filtering processes at the same time, and each one only after approval.
The following piece of code from config.yml will help to understand the task:
workflows:
commit:
jobs:
- path-filtering/filter:
name: production cloudwatch-agent reconfigure
requires:
- approve-production
mapping: |
.circleci/amazon-cloudwatch-agent/.* run-production-reconfigure true
base-revision: production
config-path: .circleci/continue_config.yml
- path-filtering/filter:
name: production-worker cloudwatch-agent reconfigure
requires:
- approve-production-worker
mapping: |
.circleci/amazon-cloudwatch-agent/.* run-production-worker-reconfigure true
base-revision: production
config-path: .circleci/continue_config.yml
At the moment I get a crash: “message”: “Pipeline is not in setup state” for any of the jobs (the one that ran first, the one without errors)