How to disable pipelines to be triggered automatically?
I am having a pipeline for creating a new environment for the branch after it is ready for the testing.
Now all pushed commits are triggering the pipeline but it does not do anything, because the first step has:
when: manual
allow_failure: false
If I am adding only: something to the job. Than pipelines are not being triggered automatically, but then if I am trying to start pipeline manually it says that there are no suitable jobs for this branch.
Because of this behaviour, hundreds of not started pipelines are present on the list. Another plus for this approach is being able to set up dynamic build variables for the entire pipeline.
Which is well and good but when you’re trying to work out how to create the equivalent of a Jenkins/Bamboo/Circle “manual trigger” it’s quite misleading.
Infact, what we appear to actually be looking for is “web”.
The answer by @zhaparoff did not work for me. But $CI_PIPELINE_SOURCE == 'web' did the trick for me.
More specifically, I needed automatic triggers for merge requests, tags, and default branch commits, but also manual trigger on other branches.
Can you be more precise what you mean with “pipeline manually”?
If I understand you correctly, you don’t want a pipeline to be created automatically (for example with each commit).