Required job did not run when using branch filters

Overview:

You may run a workflow sequentially using the requires key. In this case, a downstream job will only run if all required jobs succeed. When using filters, if a job is not run due to branch or tag filters, it will not be required by downstream jobs.

For example, in the below config.yml file the deploy job only requires the build job as the test job is never run due to branch filters: 

workflows:
build_and_test:
jobs:
- build
- test:
filters:
branches:
only: master

- deploy:
requires:
- build
- test

 

Additional Resources:

Was this article helpful?
0 out of 0 found this helpful

Comments

0 comments

Article is closed for comments.