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