Excludes
Restrict the scope of a Deployment Definition by excluding specific files or directories.
読み終わるまでの所要時間 1 分最終更新 2ヶ月前
Definition
Excludes are a way to restrict the scope of a Deployment Definition.
Excludes only affect files or directories that it is responsible for.
Excludes use glob pattern matching to match the contents of the field and the files the Deployment Definition is responsible for.
excludePathsExamples
Given the following file structure, there are multiple ways to exclude the contents of the folder.
/Tests/Assets/├── DeployableAssets/│ ├── CloudCode/│ │ ├── CloudCode.ddef│ │ ├── scriptA.js│ │ ├── scriptB.js│ │ └── Tests/│ │ ├── scriptA_test.js│ │ └── scriptB_test.js│ └── Remote Config/│ ├── RemoteConfig.ddef│ ├── configA.rc│ └── configB.rc
Glob Directory
A relative path can hide the whole directory.
/Tests/{ "name": "CloudeCode", "excludePaths": [ "**/Tests/**" ]}
File Path
The full path to the files.
{ "name": "CloudeCode", "excludePaths": [ "Assets/DeployableAssets/CloudCode/Tests/scriptA_test.js", "Assets/DeployableAssets/CloudCode/Tests/scriptB_test.js", ]}