Skip to main content

Path Wildcard Match

Many objects in OneDev are identified via a path-like structure, for instance, project path root/project/subproject, branch bugfixes/2.0, tag releases/v2, file src/client/menu.js, or docker image alpine/git

When match against such paths, a single wildcard character * will match current path segment, for instance:

  • * will match file but not dir/file
  • dir/* will match dir/file but not file
  • */* will match dir/file but not dir/dir2/file

To match against arbitrary path segments, use double **, for instance:

  • ** will match all paths recursively
  • dir/** will match all paths under dir recursively
  • **/*.js will match all paths ending with .js recursively