Run a job when only another job depends on
I have 3 stages:
deploy. Each stage except
build has several jobs which depend on a
build job. My
build job is only for resolving dependencies for another jobs. At some branches or tags, I don't run any
deploy jobs. I can control it by
except directive. There's no reason to run the
build job also. But I can't control it or I don't know how.
when: required option for jobs. A job with that option will be started when only another job to be started depends on.