Configure Path Mapping from the Last Promotion

JFrog Artifactory Documentation

Products
JFrog Artifactory
Content Type
User Guide
ft:sourceType
Paligo

Starting with release 2.26.1, JFrog Distribution includes an option for defining a default path mapping when distributing or exporting a Release Bundle v2 version. This option can be enabled in the Distribution YAML file for all Release Bundle v2 distributions or via API for specific distribution operations, as described below.

When the default path mapping option is enabled, the default destination repositories from the last successful promotion, if one exists, will be displayed in the UI. You can use this mapping if desired, replace it with a mapping of your own, or leave the fields blank. If no such promotion has been performed, the path mapping fields in the UI are left blank, and the destination repositories will match those at the source, as before.

For more information about path mapping, see Distribute a Release Bundle (v2) using the Platform UI and Export Release Bundles v2 in the Platform UI.

Enable Default Path Mapping

The option for defining a default path mapping is enabled as follows:

  • YAML file: A new configuration parameter, default-path-mapping-by-last-promotion (default=false) has been introduced to support this feature at the system level. For more information, see Distribution Application Config YAML File.Distribution Application Config YAML File

  • REST API: This feature can be enabled using an optional request parameter in the Distribute Release Bundle Version v2 API. This is useful for enabling the feature for specific requests, facilitating a gradual rollout of this feature.Distribute Release Bundle Version v2

Note

If the optional request parameter is configured in the API (true or false), this setting overrides the configuration parameter setting in the YAML file.