Deleted require in job causes error

My Workflow first (not worked):

workflows:
  version: 2
  build_and_tag:
    jobs:
      - build_staging:
          filters:
            branches:
              only:
                - /release.*/
      - test_staging:
          requires:
            - build_staging
          filters:
            branches:
              only:
                - /release.*/
      - deploy_staging:
          requires:
            - build_staging
          filters:
            branches:
              only:
                - master

After:

workflows:
  version: 2
  build_and_tag:
    jobs:
      - build_staging:
          filters:
            branches:
              only:
                - /release.*/
      - test_staging:
          requires:
            - build_staging
          filters:
            branches:
              only:
                - /release.*/
  deploy_staging:
    jobs:
      - deploy_staging:
          filters:
            branches:
              only:
                - master

Error on CircleCI:

We weren't able to start this workflow.
The following jobs are unreachable: deploy_staging
At least one job in the workflow must have no dependencies.
deploy_staging: requires job "test_staging" but "test_staging" is not part of this workflow.
For more examples see the Workflows documentation.

What trouble are you having specifically? It seems the error explains the problem. What are the “before” and “after” versions of your config?

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.