DocsFeaturesBuild metadata links

Build metadata links

Add administrator-managed links to Environment details using build environment variables as templates.

Build metadata links place deployment-specific destinations on an Environment’s details page. Examples include logs, traces, dashboards, and runbooks. Lifecycle renders each link with that build’s environment-variable context.

Each link has:

FieldPurpose
textUser-facing label
iconIcon identifier used by the UI
linkAbsolute URL template
positionInteger used to order links

Use Mustache placeholders for values available in the build environment:

Lifecycle renders double- and triple-brace placeholders as unescaped URL text. Unknown variables render as empty strings. Test the link with build data.

⚠️

Metadata links are global and can give deployment context to an external service. Use only trusted http or https destinations. Do not put secrets in query strings. Before you publish the link, check the rendered host.

Build metadata configuration is an administrator operation. Use these v2 routes:

OperationRoute
List templatesGET /api/v2/config/metadata
Create a templatePOST /api/v2/config/metadata
Update selected fieldsPATCH /api/v2/config/metadata/{id}
Delete a templateDELETE /api/v2/config/metadata/{id}

Only an authenticated administrator browser session can use these routes. They do not accept API keys. Use the deployment API reference from an approved administrator session. Do not copy a browser session token into a shell.

A create request accepts only text, icon, link, and optional position. Lifecycle generates the id:

A patch changes only the supplied fields:

Check the result

  1. Create or update the link.
  2. Open an Environment that defines all referenced variables.
  3. Check the label, icon, and ordering.
  4. Before you follow the link, examine the rendered destination.
  5. Test a build that has no optional variable.

The build-specific read route renders configured templates:

See API overview for the supported API version and deployment-local reference.