DISTRIBUTION: Using Path Mapping combinations when working with Release Bundles

DISTRIBUTION: Using Path Mapping combinations when working with Release Bundles

AuthorFullName__c
Omer Borshan
articleNumber
000005768
FirstPublishedDate
2023-06-07T08:50:27Z
lastModifiedDate
2025-07-20

Release Bundles group together the contents that are part of your release, providing the bill of materials for your software releases. In some scenarios, we might want to change the repository or the relative path of the distributed bundle on the target server, by using one of the Port Mapping templates.


How to use Port Mapping to change a repository or a path while distributing a release bundle?

Assuming we want to change the repository name or path when disturbing the release bundle, we would need to:

  • Navigate to the Add Query screen, then to ‘Additional Detail’ tab, and choose ‘Port Mapping’ ->  ‘Change repository’
  • Use the below mapping values.
    To change a repository:
      generic-local/(.*)  - > generic-local-test/(.*)  -
    To change the path:
     generic-local/(.*)  - > generic-local/new/path/(.*)
How to use complex regular expressions to change both the repository name and the relative path on the source machine?

In such a scenario, we would want to use a more complex regular expression:

generic-local-A/.*/(.*)  - > generic-local-C/new/folder/path/$1
generic-local-B/.*/(.*)  - > generic-local-C/new/folder/path/$1


User-added image
User-added image