Validate Unlocked Package for Metadata Coverage

Task ID

Latest version

sfpwowerscript-validatedxunlockedpackage-task

4.0.14

This task is used to validate the metadata coverage of components that are part of the unlocked package you are building. Typically there are components in normal development that are not covered by unlocked packaging such as settings. Having this metadata in your project directory results in either these metadata to be skipped or results in an error during the time of packaging. This task checks whether the analyzed source directory has any metadata that is not covered by unlocked packaging.

Prerequisites

Install SFDX CLI with sfpowerkit task must be added to the pipeline before utilizing this task

Task Snapshot

Parameters

Input
Output
YAML
Input

Classic Designer Labels are in Bold, YAML Variables are in italics

  • Name of the package to be validated / package The name of the package to be validated. If left empty, all of the packages in the project configuration will be validated.

  • Metadata types to be bypassed from validation / bypass Comma-separated list of metadata types to be excluded from metadata coverage validation

  • Project Directory / working_directory The project directory, containing the sfdx-project.json.

Output

None

YAML
steps:
- task: [email protected]<version>
displayName: Validates [package] for MetadataCoverage
inputs:
package: [name]
bypass: [metadata type]
working_directory: [dir]

Changelog

  • 4.0.8 Update Core dependency

  • 4.0.4 Updated to remove telemetry collection

  • 3.0.9 Refactored to use revamped folder structure

  • 2.0.1 Updated with Telemetry

  • 1.0.0 Updated for inclusion of bypass option from sfpowerkit

Edit on GitHub