I need to, because of extending other tasks using rules and generally moving away from “when”, to change this snippet to use “rules”:
job:
stage: build
needs: [test-job]
when: on success
script:
- [...]
It makes the job only start when the “test-job” job is successful. I have another manual job if it is unsuccessful.
How can i make a job dependent on the success or failure of another job using rules?
I have tested:
needs: [test-job]
rules:
when: manual
but that is incorrect.
Maybe even using needs is wrong in this instance?