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", ]}