Deploy Salesforce metadata using Ant.
Fetch, delete and deploy Salesforce metadata using ant
Java Ant - Add ant to path in the System Environment
Update environment properties with Salesforce credentials for the target org
e.g. sandbox.properties, prod.properties
Define the package.xml with the Saleforce Metadata to retrieve
Open the command line on the same directory as your build
Fetch Metadata
ant -Denvironment=sandbox -buildfile build.xml fetchMetadata
Deploy Build
ant -Denvironment=prod -buildfile build.xml deployMetadata
Undeploy Build
ant -Denvironment=prod -buildfile build.xml undeployCode
Validate Build
ant -Denvironment=prod -buildfile build.xml deployEmptyCheckOnly
Paulo Orquillo – @olopsman
Generate a package.xml from describeMetadata
- Fork it
- Create your feature branch (
git checkout -b feature/fooBar
) - Commit your changes (
git commit -am 'Add some fooBar'
) - Push to the branch (
git push origin feature/fooBar
) - Create a new Pull Request