Hedgehog Documentation

Content Name Resolution

  • Last Modified: 2019-07-17

Project Content Name Resolution

Most content items reference things by name. For example, a pipeline named "Hotfix" might reference a plan named "Emergency Deploy" in a stage named "Production". While you can use the fully-qualified syntax, it's best to let Hedgehog resolve simple names for you, especially when content items are contained within the same project.

When searching for content with an unqualified name, Hedgehog will first look in the current project for content with that name and type. If no content is found, then the parent project is searched, and then the ancestors, all the way to the global (i.e. no project) level.

Example: Sharing Resources with a Hierarchy

One common use case for project nesting is to use a parent project as a sort of "container" for both other projects, and the content that those projects will use.

For example, consider a set of libraries that are all published in a consistent manner, using the same template ("Library"), which references a pipeline ("Standard") and a deployment plan ("Publish Library"):


With this layout, new library projects can easily be added by simply creating a project under the "CommonLibraries" project. All package sets in these libraries can use the same pipeline and plan. So long as the same "Library" template is used, everything will be built and deployed consistently. Of course, the packages or projects themselves can have variables to control how and where they are published.

Anti-example: Confusing Hierarchy

This following layout is pretty bad, and you should never set anything up like this, because it's quite confusing.

But it demonstrates how the name resolution works:


When a package set in ChildProject1 specifies "Hotfix" as a pipeline, then ParentProject's Hotfix.json will be used. If ParentProject's HotFix specifies "Emergency Deploy" as a plan, then that package set will use ChildProject1's Emergency-Deploy.json, and *not* the ParentProject's version.

When a package set in ChildProject2 specifies "Emergency" as pipeline, then ChildProject2's Emergency.json will be used. If this specifies "Emergency Deploy" as a plan, then the package set will use ParentProject's Emergency-Deploy.otter.

Is this documentation incorrect or incomplete? Help us by contributing!

This documentation is licensed under CC-BY-SA-4.0 and stored in GitHub.

Generated from commit ce197caa on master