This task installs a source package created by Create a new version of Source based package into an org using metadata api.
Install SFDX CLI with sfpowerkit must be added to the pipeline before utilizing this task
Classic Designer Labels are in Bold, YAML Variables are in italics
Alias or username of the target org / envname
Provide the alias or username of the target org on which the unlocked package is to be deployed
Name of the package to be installed / package
Name of the package to be installed
Path to the directory where artifacts are downloaded / artifactDir : Provide the path of the directory where the artifacts will be unpacked, By default the task will pick up the Pipeline.Workspace (in case of YAML Pipelines) or System.ArtifactsDirectory (in case of Classic Pipelines).
Optimize Deployment of this package by deploying using only the test classes in the package / optimizeDeployment: Optimizes the speed of the deployment by using only the test classes in the package. This option will only work if all the apex class have more than 75% code coverage ensured by the classes in the package
Wait Time / wait_time
Wait time for the command to finish in minutes
Skip if the package is already installed in the org / skip_if_package_installed
Skip installation of the package if it is already installed in the org
Skip if no artifact is found / skip_on_missing_artifact Once enabled, the task will be skipped if the artifact mentioned is not attached to the release pipeline. This option is useful if the artifacts are attached to the release pipeline dynamically
- task: [email protected]<version>displayName: 'Install a source package service to $(alias) 'inputs:envname: '$(alias)'package: serviceoptimizeDeployment: trueskip_if_package_installed: trueskip_on_missing_artifact: true
1.0.8 Initial Version