Skip unittests of glance if not related to code
On Glance gate, today unittests jobs run for patches which is not
related code. That wastes gate resources and developers need to wait
for much time even if they propose doc patches. This patch adds
all-files-match-any like the other projects.
@@ -1526,6 +1526,15 @@ jobs:
- ^nova/locale/.*$
- ^releasenotes/.*$
+ - name: ^.*glance-(python27-db-ubuntu-xenial|python35-db(-nv)?)
+ skip-if:
+ - project: ^openstack/glance$
+ all-files-match-any:
+ - ^.*\.rst$
+ - ^api-ref/.*$
+ - ^doc/.*$
+ - ^releasenotes/.*$
+
# Skip non-doc jobs for doc-only or translation-only heat changes.
# Since doc/source/* is checked by heat-pep8, this job should not be
# skipped.
