`only:changes/except:changes` wildcard does not work for multiple files in the root folder of a project
Summary
only:changes/except:changes
wildcard does not work for multiple files in the root folder of a project
Steps to reproduce
- Create a repo with a code/config file in the root directory, such as
main.tf
(common implementation for a Terraform repo) - Create a CI job with a similar definition to the following (note: for the
changes:
section, we have also tried"./*.{tf}"
and*.{tf}
to no avail):
plan:
image: ${CI_IMAGE}:${CI_VERSION}
stage: plan
only:
refs:
- merge_requests
changes:
- ./*.{tf}
script:
- terraform plan
Example Project
Most Terraform repos on GitHub will suffice, such as this one.
What is the current bug behavior?
CI job fails to run due to "yaml validation error".
What is the expected correct behavior?
CI job should trigger off any changes to a file with the .tf
extension in the root dir of the repo
Relevant logs and/or screenshots
Output of checks
(If you are reporting a bug on GitLab.com, write: This bug happens on GitLab.com)
Results of GitLab environment info
$ sudo gitlab-rake gitlab:env:info
System information
System: Ubuntu 18.04
Proxy: no
Current User: git
Using RVM: no
Ruby Version: 2.5.3p105
Gem Version: 2.7.6
Bundler Version:1.16.6
Rake Version: 12.3.2
Redis Version: 3.2.12
Git Version: 2.18.1
Sidekiq Version:5.2.5
Go Version: unknown
GitLab information
Version: 11.9.0-ee
Revision: 2f3536bdda8
Directory: /opt/gitlab/embedded/service/gitlab-rails
DB Adapter: postgresql
DB Version: 9.6.11
URL: <redacted>
HTTP Clone URL: <redacted>/some-group/some-project.git
SSH Clone URL: git@<redacted>:some-group/some-project.git
Elasticsearch: no
Geo: no
Using LDAP: no
Using Omniauth: yes
Omniauth Providers:
GitLab Shell
Version: 8.7.1
Repository storage paths:
- default: /var/opt/gitlab/git-data/repositories
GitLab Shell path: /opt/gitlab/embedded/service/gitlab-shell
Git: /opt/gitlab/embedded/bin/git
Results of GitLab application Check
$ sudo gitlab-rake gitlab:check SANITIZE=true
Checking GitLab subtasks ...
Checking GitLab Shell ...
GitLab Shell: ... GitLab Shell version >= 8.7.1 ? ... OK (8.7.1)
Running /opt/gitlab/embedded/service/gitlab-shell/bin/check
Check GitLab API access: OK
Redis available via internal API: OK
Access to /var/opt/gitlab/.ssh/authorized_keys: OK
gitlab-shell self-check successful
Checking GitLab Shell ... Finished
Checking Gitaly ...
Gitaly: ... default ... OK
Checking Gitaly ... Finished
Checking Sidekiq ...
Sidekiq: ... Running? ... yes
Number of Sidekiq processes ... 1
Checking Sidekiq ... Finished
Checking Incoming Email ...
Incoming Email: ... Reply by email is disabled in config/gitlab.yml
Checking Incoming Email ... Finished
Checking LDAP ...
LDAP: ... LDAP is disabled in config/gitlab.yml
Checking LDAP ... Finished
Checking GitLab App ...
Git configured correctly? ... yes
Database config exists? ... yes
All migrations up? ... yes
Database contains orphaned GroupMembers? ... no
GitLab config exists? ... yes
GitLab config up to date? ... yes
Log directory writable? ... yes
Tmp directory writable? ... yes
Uploads directory exists? ... yes
Uploads directory has correct permissions? ... yes
Uploads directory tmp has correct permissions? ... yes
Init script exists? ... skipped (omnibus-gitlab has no init script)
Init script up-to-date? ... skipped (omnibus-gitlab has no init script)
Projects have namespace: ...
4/2 ... yes
18/6 ... yes
18/7 ... yes
18/9 ... yes
20/11 ... yes
18/22 ... yes
13/23 ... yes
18/24 ... yes
18/25 ... yes
18/26 ... yes
18/27 ... yes
18/28 ... yes
18/29 ... yes
18/30 ... yes
13/31 ... yes
13/32 ... yes
4/33 ... yes
13/34 ... yes
13/35 ... yes
18/37 ... yes
13/38 ... yes
13/39 ... yes
18/40 ... yes
13/41 ... yes
13/43 ... yes
13/44 ... yes
13/45 ... yes
13/46 ... yes
12/47 ... yes
13/49 ... yes
13/50 ... yes
13/51 ... yes
13/53 ... yes
13/54 ... yes
31/55 ... yes
13/56 ... yes
13/57 ... yes
13/58 ... yes
13/59 ... yes
33/60 ... yes
4/61 ... yes
4/62 ... yes
20/63 ... yes
13/64 ... yes
4/65 ... yes
13/66 ... yes
2/68 ... yes
40/69 ... yes
40/70 ... yes
40/71 ... yes
40/72 ... yes
40/73 ... yes
40/75 ... yes
40/77 ... yes
40/78 ... yes
20/79 ... yes
20/80 ... yes
13/81 ... yes
13/82 ... yes
4/85 ... yes
13/86 ... yes
20/87 ... yes
46/88 ... yes
13/89 ... yes
40/90 ... yes
13/92 ... yes
34/93 ... yes
13/94 ... yes
47/95 ... yes
13/96 ... yes
4/97 ... yes
13/98 ... yes
4/99 ... yes
53/100 ... yes
40/101 ... yes
30/102 ... yes
13/103 ... yes
13/105 ... yes
53/106 ... yes
13/107 ... yes
13/108 ... yes
53/109 ... yes
13/111 ... yes
4/112 ... yes
53/113 ... yes
4/115 ... yes
13/116 ... yes
13/117 ... yes
20/118 ... yes
13/119 ... yes
13/120 ... yes
4/122 ... yes
20/123 ... yes
63/124 ... yes
20/125 ... yes
63/126 ... yes
13/127 ... yes
13/128 ... yes
20/129 ... yes
20/130 ... yes
40/131 ... yes
53/132 ... yes
53/133 ... yes
13/134 ... yes
13/135 ... yes
40/136 ... yes
107/138 ... yes
13/139 ... yes
13/140 ... yes
79/141 ... yes
13/142 ... yes
20/144 ... yes
108/146 ... yes
13/147 ... yes
4/148 ... yes
73/149 ... yes
13/150 ... yes
13/151 ... yes
13/152 ... yes
13/155 ... yes
67/157 ... yes
63/158 ... yes
32/159 ... yes
75/160 ... yes
13/161 ... yes
13/162 ... yes
107/163 ... yes
13/164 ... yes
79/165 ... yes
79/166 ... yes
63/171 ... yes
108/172 ... yes
107/173 ... yes
40/175 ... yes
67/177 ... yes
63/178 ... yes
13/179 ... yes
13/180 ... yes
20/181 ... yes
4/182 ... yes
40/184 ... yes
13/185 ... yes
40/186 ... yes
53/187 ... yes
40/189 ... yes
4/190 ... yes
53/191 ... yes
13/192 ... yes
13/193 ... yes
40/194 ... yes
40/196 ... yes
40/198 ... yes
40/199 ... yes
13/200 ... yes
40/201 ... yes
40/202 ... yes
13/203 ... yes
13/204 ... yes
92/205 ... yes
13/206 ... yes
13/207 ... yes
108/208 ... yes
108/209 ... yes
13/211 ... yes
98/212 ... yes
98/213 ... yes
98/214 ... yes
12/215 ... yes
13/216 ... yes
42/217 ... yes
126/218 ... yes
13/219 ... yes
13/220 ... yes
40/222 ... yes
13/223 ... yes
40/224 ... yes
13/225 ... yes
63/226 ... yes
13/229 ... yes
13/230 ... yes
4/231 ... yes
13/232 ... yes
13/233 ... yes
13/234 ... yes
125/235 ... yes
13/236 ... yes
126/237 ... yes
13/238 ... yes
13/239 ... yes
13/240 ... yes
67/241 ... yes
4/242 ... yes
63/243 ... yes
13/244 ... yes
13/245 ... yes
4/246 ... yes
4/247 ... yes
13/249 ... yes
13/250 ... yes
35/251 ... yes
76/253 ... yes
13/254 ... yes
13/255 ... yes
133/256 ... yes
42/257 ... yes
40/258 ... yes
53/259 ... yes
40/260 ... yes
13/261 ... yes
79/262 ... yes
138/263 ... yes
2/264 ... yes
138/265 ... yes
138/266 ... yes
13/267 ... yes
75/268 ... yes
79/269 ... yes
89/271 ... yes
13/272 ... yes
98/273 ... yes
13/274 ... yes
13/275 ... yes
13/276 ... yes
13/277 ... yes
125/278 ... yes
13/279 ... yes
13/280 ... yes
101/281 ... yes
67/282 ... yes
13/283 ... yes
16/284 ... yes
13/285 ... yes
125/288 ... yes
13/289 ... yes
13/290 ... yes
13/291 ... yes
13/292 ... yes
13/293 ... yes
13/294 ... yes
13/295 ... yes
13/296 ... yes
13/297 ... yes
13/298 ... yes
13/301 ... yes
13/303 ... yes
40/304 ... yes
13/305 ... yes
13/306 ... yes
13/307 ... yes
13/309 ... yes
13/310 ... yes
13/311 ... yes
Redis version >= 2.8.0? ... yes
Ruby version >= 2.3.5 ? ... yes (2.5.3)
Git version >= 2.18.0 ? ... yes (2.18.1)
Git user has default SSH configuration? ... yes
Active users: ... 97
Elasticsearch version 5.6 - 6.x? ... skipped (elasticsearch is disabled)
Checking GitLab App ... Finished
Checking GitLab subtasks ... Finished