When I create a new feature branch from any branch and push it, regardless of the fact that it has no changes introduced, it runs all jobs by disregarding only.changes
conditions.
.gitlab-ci.yml
file:
System Proxy:
stage: trigger
script:
- echo 'run me'
only:
changes:
- playbooks/system_proxy.yml
- environments/stl/dev/group_vars/system-proxy/*
App Proxy:
stage: trigger
script:
- echo 'run me'
only:
changes:
- playbooks/app_proxy.yml
- environments/stl/dev/group_vars/app-proxy/*
Git operations
$ control-repo|feature/CD-04_test⇒ git checkout -b feature/CD-05_test
Switched to a new branch 'feature/PROCD-05_test'
$ control-repo|feature/CD-05_test ⇒ git push origin feature/CD-05_test
Total 0 (delta 0), reused 0 (delta 0)
remote:
remote: To create a merge request for feature/CD-05_test, visit:
xxxxx
* [new branch] feature/CD-05_test -> feature/CD-05_test
This operation of simply creating and pushing the new branch with no changes causes both System Proxy
and App Proxy
jobs to run.
What am I missing here?