Suppose there are 4 jobs are define in stages .
stages:
- build
- test
- deploy
- upload
Now test, deploy and upload only run when pipeline trigger manually. We can define rule on separate jobs for this but it will be repetitive.(do not want to use that)
Is it possible to define rule on "stages" so that one job will run on automatic trigger and rest 3 job will run on manual trigger of pipeline.
I know this is a late answer, but I found the solution while running into this scenario.
Use workflow to control pipeline behavior.(Introduced in GitLab 12.5) https://docs.gitlab.com/ee/ci/yaml/index.html#workflow