Install a Source Package to an Org

Deployment Tasks

Task Id

Version

sfpwowerscript-installsourcepackage-task

1.0.8

This task installs a source package created by Create a new version of Source based package into an org using metadata api.

Prerequisites

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

Task Snapshot

Install a Source Package to an Org

Parameters

Input Parameters
Output Parameters
YAML Example
Input Parameters

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

Output Parameters

YAML Example
- task: [email protected]<version>
displayName: 'Install a source package service to $(alias) '
inputs:
envname: '$(alias)'
package: service
optimizeDeployment: true
skip_if_package_installed: true
skip_on_missing_artifact: true

Changelog

  • 1.0.8 Initial Version

Edit on GitHub