I have a pipeline with one stage with 2 parallel jobs, is there a way to have only one job run (these jobs are manual)? and if one of them runs the other one is automatically skipped and it moves to the next job. (basically one or the other but not both)
Here is an image of my build:
yaml:
apply:
stage: command_type
extends:
- .init_setup
- .dev_apply
variables:
PATH_TO_MAIN_DIR: '$CI_PROJECT_DIR/DEV/'
APPLY_INIT: "yes"
dependencies:
- build
destroy:
stage: command_type
extends:
- .init_setup
- .dev_destroy
variables:
PATH_TO_MAIN_DIR: '$CI_PROJECT_DIR/DEV/'
APPLY_INIT: "yes"
dependencies:
- build
Production Deployment:
stage: prod
script:
- echo "Deployment to PROD, manual approval needed..."
environment:
name: production
action: start
needs: []
when: manual
allow_failure: false
only:
- master