I have a gitlab pipeline setup for a repo. For development purpose I have to create a new dev
branch and the pipeline is getting executed for every commit both for master and dev which is ideally correct. But for our testing team it has become difficult to constantly test the feature that is merged only to master ? Any help on this ?
so the solution i found for the mentioned scenario are,
-
while pushing the code from local repo to gitlab dev branch we can skip the pipeline using this command
git push -o ci.skip
https://docs.gitlab.com/ee/user/project/push_options.html#push-options-for-gitlab-cicd -
another way is to trigger the pipeline manual using
when: manual
https://docs.gitlab.com/ee/user/project/push_options.html#push-options-for-gitlab-cicd