Can't resume pre-validated deployment via quick-deploy in CI #2297
Labels
investigating
We're actively investigating this issue
validated
Version information for this issue has been validated
Summary
I have a CI job where a pre-validated deployment is quick-deployed. Calling
sf project deploy quick
works fine and returns the expected result, but I can'tsf project deploy report
, either with--use-most-recent
(Error (1): There are no recent job IDs available.
- indicating thatproject deploy quick
doesn't store the resulting deployment id) or explicitly specifying the deployment id with--job-id
(Error (1): No job found for ID: 0Af1y00000srNIqCAM.
).Steps To Reproduce
sf project deploy validate -m ApexClass:Cases -m ApexClass:CasesTest -l RunSpecifiedTests -t CasesTest
sf project deploy quick --async --job-id 0Af1y00000srNIqCAM
sf project deploy resume --job-id 0Af1y00000srNIqCAM --wait 9999
-Error (1): No job found for ID: 0Af1y00000srNIqCAM.
sf project deploy resume --use-most-recent --wait 9999
-Error (1): There are no recent job IDs available.
Expected result
sf project deploy resume
should be able to resume the quick-deploy using--use-most-recent
sf project deploy resume
should be able to resume the quick-deploy using--job-id
Actual result
--use-most-recent
produces error:Error (1): There are no recent job IDs available.
--job-id
produces error:Error (1): No job found for ID: 0Af1y00000srNIqCAM.
System Information
CI is using bash, local machine is powershell 7
Additional information
Interestingly, these commands work on my local machine. I suspect the issue is around the manifest cache - I can replicate the behaviour by deleting
~/.sf/deploy-cache.json
before runningproject deploy quick
.By editing
node_modules/@salesforce/plugin-deploy-retrieve/lib/commands/project/deploy/resume.js
to passfalse
as the third parameter to the call tocache.resolveLatest()
, I can get--job-id
to work, but I have to run the command twice.I find it interesting that a call to
sf project deploy quick --json --job-id xxxx
will spit out the same job id in the json output, rather than the new salesforce job id. This seems counter-intuitive to me and is not how I expect it to work.The text was updated successfully, but these errors were encountered: