Disable placeholder scanning
This topic explains how to disable placeholder scanning in Deploy during package import.
When importing a package, Deploy scans the artifacts contained in the package for placeholders that need to be resolved during a deployment. You can turn off placeholder scanning using one of the following methods described in this topic.
Disabling placeholder scanning for one file extension on a particular artifact type
Deploy looks for files to scan in artifact configuration items (CIs) based on the file extension. It is possible to exclude certain extensions from this process. To do this, edit the type-defaults.properties
file and set the excludeFileNamesRegex
property on the artifact CI type you want to exclude. For example:
file.Archive.excludeFileNamesRegex=.+\.js
You must restart the Deploy server for the change to take effect.
Disabling placeholder scanning for one file extension on all artifacts
Deploy looks for files to scan in artifact CIs based on the file extension. You can exclude certain extensions from this process. To do this, edit the type-defaults.properties
file and set the excludeFileNamesRegex
property on the artifact CI type you want to exclude. For example:
udm.BaseDeployableArchiveArtifact.excludeFileNamesRegex=.+\.js
You must restart the Deploy server for the change to take effect.
Disabling placeholder scanning for particular filenames on all artifacts
You can edit the deployment package manifest and change the excludeFileNamesRegex
property including those filenames:
<file.File name="sample" file="sample.txt">
<excludeFileNamesRegex>.*(styles.js | vendor.js | polyfills.js).*</excludeFileNamesRegex>
</file.File>
Disabling placeholder scanning for one CI instance
You can edit the deployment package manifest and change the scanPlaceholders
property of the particular artifact:
<file.File name="sample" file="sample.txt">
<scanPlaceholders>false</scanPlaceholders>
</file.File>
Disabling placeholder scanning for one CI type
You can edit the type-defaults.properties
file and set the scanPlaceholders
property for the CI type you want to exclude. For example:
file.Archive.scanPlaceholders=false
You must restart the Deploy server for the change to take effect.
Disabling placeholder scanning completely
You can edit the type-defaults.properties
file and set the following property:
udm.BaseDeployableArtifact.scanPlaceholders=false
You must restart the Deploy server for the change to take effect.