You signed in with another tab or window.Reload to refresh your session.You signed out in another tab or window.Reload to refresh your session.You switched accounts on another tab or window.Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: _docs/kb/articles/glob-expression-trigger-not-working.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,7 +20,7 @@ The glob expression that is set up for a trigger is not working correctly.
20
20
**Cause** |**Solution**
21
21
---|---
22
22
You are using a single expression, but are encasing them in curly brackets`{folderName/**}` | Do not encase them in in curly brackets. Instead use`folderName/**`<br><br>Curly brackets are only used for multiple expressions.
23
-
Incorrect syntax for negation expressions | Proper syntax:`!folderName/**` for a single path,`!{folderName/**,folder2Name/**}` for multiple expressions
23
+
Incorrect syntax for negation expressions | Proper syntax:`!folderName/**` for a single path,`!{folderName/**,folder2Name/**}` for multiple expressions. To match all files in a directory except for a specific pattern, use syntax`folderName/!(fileToIgnore)**`.
24
24
Changed files are in hidden directories | Glob expressions will not match for hidden directories unless the directory pattern explicitly starts with`.`.<br><br>For example, to match for all files in all hidden subdirectories immediately under`folderName`, use`folderName/.*/**`.<br><br>Note that you will need an additional expression if you want to also match normal subdirectories under`folderName`.
25
25
List of actual changed files is different than expected | Review the full webhook event payload either in[Codefresh trigger audit logs](https://g.codefresh.io/account-admin/audit/audit-triggers), or in your git provider's webhook event history. The payload will contain the full list of modified files for the specific event, exactly as given by your git provider.
26
26
Incorrect glob expression | You can[check your glob expressions with a tool](https://www.digitalocean.com/community/tools/glob) to ensure the syntax matches the correct files.