Introduce WHEN key on job level when job has required jobs
under review
c
cultpan@gmail.com
Hi there,
I have specific request regarding WHEN on job level, it exists for workflow and step but not job.
Usecase:
In case you have parallel jobs running in single workflow you may want to execute a job which requires the parallel jobs just to complete (run job no matter with which status the required jobs were complete)
Solution:
If a job has required job(s) add WHEN key with options: always, on-fail, on-pass so the job will be executed despite required jobs status.
Minjun Seong
marked this post as
under review
Hi everyone, I'm a product manager at CircleCI. As part of working on https://circleci.canny.io/cloud-feature-requests/p/special-final-job-to-run-at-end-of-pipeline, we are looking to introduce a "terminal" status which I think would solve for the problem mentioned here as well.
For example:
workflows:
test-and-notify:
jobs:
- test-frontend
- test-backend
- test-mobile
- notify-team:
requires:
- test-frontend: terminal
- test-backend: terminal
- test-mobile: terminal
In this case, notify-team would run regardless of the status of the upstream test jobs.
Would this be a valid solution or what limitations do you see?