We are trying to implement an automatic deploy from a Git repository to Salesforce. We have all the metadata in a repository and so far, we were able to deploy a subset of these metadata doing these operations:
- Create a folder to deploy
- Copy in the new folder a package.xml file
- Copy in the new folder the subset of the entities contained in the package.xml
The way we manage the 3th point is not really smart, as we need to duplicate the information held in the package.xml: we have a separate list of all the entities contained there and copy each one of them from the repository to the deploy folder.
Is there a better way to implement this task?
A possible solution would be to retrieve the entities form a sandbox, but we would rather pick everything from the repository.
We can work with both DX and the classic metadata structure.