Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sf project deploy quick command issue #2171

Closed
shabu74 opened this issue May 30, 2023 · 3 comments
Closed

sf project deploy quick command issue #2171

shabu74 opened this issue May 30, 2023 · 3 comments
Labels
investigating We're actively investigating this issue

Comments

@shabu74
Copy link

shabu74 commented May 30, 2023

Summary

When I use a deployment job id of a validated deployment in sf project deploy quick, deployment will be successfully completed in Salesforce. But this command is getting failed error.

Steps To Reproduce:

sf project deploy start --async --dry-run --ignore-conflicts --manifest releasePackage/package.xml --post-destructive-changes releasePackage/destructiveChangesPost.xml --target-org $targetusername --test-level RunSpecifiedTests --tests sampletestclaas --json --api-version $SF_API_VERSION > deploy-result.json
deploy_id=$(jq -r '.result.id' deploy-result.json)
sf project deploy quick --async --job-id $deploy_id --json > deploy-result.json

Expected result

Deployment triggered successfully and I should get deploy-result.json with details details of deployment including status.

Actual result

Deployment triggered and completed successfully. But I got deploy-result.json with erro details
{
"code": 1,
"context": "DeployMetadataQuick",
"commandName": "DeployMetadataQuick",
"message": "undefinedComponentSet",
"name": "SfError",
"status": 1,
"stack": "SfError: undefinedComponentSet
at ComponentSetBuilder.build (/usr/local/lib/node_modules/@salesforce/cli/node_modules/@salesforce/source-deploy-retrieve/lib/src/collections/componentSetBuilder.js:140:19)
at buildComponentSet (/usr/local/lib/node_modules/@salesforce/cli/node_modules/@salesforce/plugin-deploy-retrieve/lib/utils/deploy.js:47:57)
at async DeployMetadataQuick.run (/usr/local/lib/node_modules/@salesforce/cli/node_modules/@salesforce/plugin-deploy-retrieve/lib/commands/project/deploy/quick.js:30:30)
at async DeployMetadataQuick._run (/usr/local/lib/node_modules/@salesforce/cli/node_modules/@oclif/core/lib/command.js:117:22)
at async Config.runCommand (/usr/local/lib/node_modules/@salesforce/cli/node_modules/@oclif/core/lib/config/config.js:329:25)
at async run (/usr/local/lib/node_modules/@salesforce/cli/node_modules/@oclif/core/lib/main.js:89:16)",
"exitCode": 1,
"warnings": [
"org-api-version configuration overridden at 57.0"
]
}

System Information

bash
{
"cliVersion": "@salesforce/cli/1.79.5",
"architecture": "linux-x64",
"nodeVersion": "node-v20.2.0",
"osVersion": "Linux 5.15.0-1035-aws",
"shell": "bash",
"rootPath": "/usr/local/lib/node_modules/@salesforce/cli",
"pluginVersions": [
"@oclif/plugin-autocomplete 2.2.0 (core)",
"@oclif/plugin-commands 2.2.15 (core)",
"@oclif/plugin-help 5.2.9 (core)",
"@oclif/plugin-not-found 2.3.23 (core)",
"@oclif/plugin-plugins 3.0.1 (core)",
"@oclif/plugin-search 0.0.17 (core)",
"@oclif/plugin-update 3.1.15 (core)",
"@oclif/plugin-version 1.3.4 (core)",
"@oclif/plugin-warn-if-update-available 2.0.37 (core)",
"@oclif/plugin-which 2.2.20 (core)",
"@salesforce/cli 1.79.5 (core)",
"apex 2.2.19 (core)",
"auth 2.7.15 (core)",
"data 2.3.18 (core)",
"deploy-retrieve 1.9.1 (core)",
"info 2.6.13 (core)",
"limits 2.3.15 (core)",
"login 1.2.9 (core)",
"org 2.9.0 (core)",
"schema 2.3.10 (core)",
"settings 1.4.8 (core)",
"sobject 0.1.19 (core)",
"source 2.10.9 (core)",
"telemetry 2.2.0 (core)",
"templates 55.4.15 (core)",
"trust 2.4.18 (core)",
"user 2.3.13 (core)"
]
}

Additional information

Feel free to attach a screenshot.

@shabu74 shabu74 added the investigating We're actively investigating this issue label May 30, 2023
@github-actions
Copy link

Thank you for filing this issue. We appreciate your feedback and will review the issue as soon as possible. Remember, however, that GitHub isn't a mechanism for receiving support under any agreement or SLA. If you require immediate assistance, contact Salesforce Customer Support.

@iowillhoit
Copy link
Contributor

Hey @shabu74, this looks like a duplicate of #2098. We have a work item to track this.

FYI: I would encourage you to use the sf project deploy validate command to prepare a deployment for a quick deploy later.

@cristiand391 cristiand391 closed this as not planned Won't fix, can't repro, duplicate, stale Jun 2, 2023
@shabu74
Copy link
Author

shabu74 commented Jun 2, 2023

But project deploy validate command does not have the argumentcto specify post destructive package xml. Right? So, how can we validate a destructive deployment?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
investigating We're actively investigating this issue
Projects
None yet
Development

No branches or pull requests

3 participants