Sfdx-git-delta: Adding and Deleting Components in a Single Deployment

Created on 19 Feb 2021  路  2Comments  路  Source: scolladon/sfdx-git-delta

I'm wondering if you try to use Single Deployment for add/mod/del? If yes, please let us know how to do this with the plugin. To use single deployment according to SF we need to add metadata to be deleted.

question

Most helpful comment

Hi @MaciekLeks !

Thanks for your interest in the plugin !

In fact it is not possible yet using the force:source:deploy command because it just don't accept destructiveChanges.xml
This is the reason why we propose to do it in two times

  1. Deploy using force:source:deploy the added/modified elements using the package.xml in the package folder of the output or the delta metadata file generated.
  2. Delete using force:mdapi:deploy the deleted element using the other using the destructiveChanges.xml in the destructiveChanges folder

As soon as it will be possible to delete and deploy at the same time using force:source command we will update the readme !
Stay tuned

All 2 comments

Hi @MaciekLeks !

Thanks for your interest in the plugin !

In fact it is not possible yet using the force:source:deploy command because it just don't accept destructiveChanges.xml
This is the reason why we propose to do it in two times

  1. Deploy using force:source:deploy the added/modified elements using the package.xml in the package folder of the output or the delta metadata file generated.
  2. Delete using force:mdapi:deploy the deleted element using the other using the destructiveChanges.xml in the destructiveChanges folder

As soon as it will be possible to delete and deploy at the same time using force:source command we will update the readme !
Stay tuned

Yes, we are waiting (188) but no matter if we use mdapi or sfdx api we need deleted parts to be get rid of them. You use mdapi anyway, so maybe this feature do not have to wait :) It's really hard to manage consistency of the org when deployment of add/mod changes succeded but the destructive changes not.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

alexmodis picture alexmodis  路  8Comments

ashishshukla38 picture ashishshukla38  路  4Comments

Dhanielk picture Dhanielk  路  6Comments

lcee-info picture lcee-info  路  8Comments

robertoamd90 picture robertoamd90  路  4Comments