-
Notifications
You must be signed in to change notification settings - Fork 100
sfdx sfpowerscripts:dependency:install fails when used with Prepare command #1276
Comments
@petter-eikeland when you use includeOnlyArtifacts. didn't it automatically install the dependency of the filtered artifacts? |
@azlam-abdulsalam |
it doesn't at the moment This is more towards creation of the release definition where you have an option to install dependencies. Will address this as a bug |
now for the install dependency command when used directly, can you help me how did you set up the script? |
Awesome! Thx for such swift help. For the install dependency command, I did the following:
|
Describe the bug
Trying to create a pool of scratch orgs with all external dependencies, and some packages. Currently I'm using the
releaseConfigFile
parameter to specify the packages I want installed. However, I had some issues specifying external dependencies in the releaseConfigFile. Thus, I tried adding the sfdx sfpowerscripts:dependency:install command using either thepreDependencyInstallationScriptPath
&postDeploymentScriptPath
commands. This command successfully installs all external dependencies, but it fails as it messes up the prepare logs (see screenshots below).I might be looking in the wrong direction, and could be that the
releaseConfigFile
parameter should also help resolve external dependencies? I have tried using theincludeOnlyPackageDependencies
&packageDependencies
parameters in the releaseConfig YAML file. But this did not make the Prepare command install the external dependencies.To Reproduce
releaseConfigFile
parameter to install the packages that you want:preDependencyInstallationScriptPath
orpostDeploymentScriptPath
.Expected behavior
Pool is successfully created without any errors. External dependencies are installed either by using
includeOnlyPackageDependencies
orpackageDependencies
parameters OR by using sfdx sfpowerscripts:dependency:install in apreDependencyInstallationScriptPath
orpostDeploymentScriptPath
Screenshots
Platform Details (please complete the following information):
OS: Linux
Version [e.g. CLI Version eg: 1.6.6] LATEST (20.26.3)
Salesforce CLI(sfdx cli) Version: 7.186.2
CI Platform: Azure DevOps
The text was updated successfully, but these errors were encountered: