I want to run dependency job if condition is true. Do we have that feasibility in git lab.When i manual triggered test job with DEPLOY variable then dependencies should run otherwise skip dependencies. I don't want to keep condition at build stage.
build:
stage: build
when: manual
script:
- echo build
test:
stage: test
when: manual
dependencies:
- build
if [ $deploy = 'true' ]
script:
- echo test