-
Notifications
You must be signed in to change notification settings - Fork 7
Define dependencies between jobs
Taichiro Suzuki edited this page Oct 23, 2018
·
7 revisions
You can define dependencies between jobs.
Edit your neph.yml
like this
main:
commands:
- echo "This is a main job!"
depends_on:
sub_job
sub_job:
commands:
- echo "This is a sub job!"
Here, main
job depends on sub_job
. So sub_job
is triggered before the main
job's execution.
You can define multiple/nested dependencies.
main:
depends_on:
- sub_job0
- sub_job1
sub_job:
depends_on:
sub_sub_job
sub_job1:
command:
echo "World!"
sub_sub_job:
command:
echo "Hello"