Run a job when only another job depends on
Description
I have 3 stages: build
, test
, and 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 test
or deploy
jobs. I can control it by only
and except
directive. There's no reason to run the build
job also. But I can't control it or I don't know how.
Proposal
Make when: required
option for jobs. A job with that option will be started when only another job to be started depends on.