layout/tripleo: optimize tripleo runs in OpenStack projects
Don't run tripleo multinode or puppet scenarios when it's not needed.
Also change ordering to not run puppet integration jobs if we patch unit
tests, beaker, reno or readme files.
@@ -1870,37 +1870,29 @@ jobs:
- ^docs/.*$
branch: ^(?!stable/liberty).*$
- # no need to run integration jobs when patching unit or beaker tests
- - name: ^gate-(puppet-.*-integration)-.*$
- skip-if:
- - project: ^openstack/puppet-.*$
- all-files-match-any:
- - ^.*\.md$
- - ^releasenotes/.*$
- - ^spec/.*$
- - ^metadata.json$
-
# no need to run the jobs for doc / releasenotes / unittests patches
- name: ^gate-(puppet-.*-(syntax|unit|beaker|integration-4)-|(tripleo-ci|scenario.*-tempest)-centos-7-).*$
skip-if:
- - project: ^openstack/puppet-.*$
+ - project: ^openstack/.*$
all-files-match-any:
+ - ^.*\.rst$
- ^.*\.md$
+ - ^doc/.*$
- ^releasenotes/.*$
- ^metadata.json$
- - project: ^openstack/tempest$
- all-files-match-any:
- - ^.*\.rst$
- - ^doc/.*$
- ^etc/.*$
- ^tempest/tests/.*$
- ^tempest/hacking/.*$
- - ^releasenotes/.*$
- - project: ^openstack/(python-tripleoclient|tripleo-.*)$
+
+ # no need to run integration jobs when patching unit or beaker tests, reno or readme.
+ - name: ^gate-(puppet-.*-integration)-.*$
+ skip-if:
+ - project: ^openstack/puppet-.*$
all-files-match-any:
- - ^.*\.rst$
- - ^doc/.*$
+ - ^.*\.md$
- ^releasenotes/.*$
+ - ^spec/.*$
+ - ^metadata.json$
# Only run the puppet module build job on metadata.json updates
- name: ^gate-puppet-.*module-build.*$
