sf project deploy start
with --wait
time of zero (0) does not work
#2392
Labels
more information required
Issue requires more information or a response from the customer
Summary
We faced a breaking change on our pipelines and external applications after update from SFDX to SF CLI v2. In big metadata deployments, we are using a wait time of 0 to return "immediately" a JSON with the deployment ID. Then we call "report" from a service to know how the deployment is doing.
From the "old" documentation:
To run the command asynchronously, set --wait to 0, which immediately returns the job ID. This way, you can continue to use the CLI.
Steps To Reproduce
Go to any SF project, and try to deploy any metadata with a wait time of 0:
sf project deploy start -m ApexClass:MyClass -o MyOrg -w 0 --json
Expected result
The command should return 0 and we should get back on the stdout the JSON containing the deployment job ID
Actual result
We get a exit code on 1 with the following error
System Information
Tested on Manjaro Linux , using bash. I'm using Volta as a JS tool manager. Salesforce CLi version is the following
Additional information
I can not find any doc regarding this topic. I dont know if it is a expected breaking change or what. But should be nice to have a way to return the flow control immediately to the window.
The text was updated successfully, but these errors were encountered: