Salesforce Ant build for metadata deployment
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
environments
README.md
ant-salesforce.jar
build.xml
package.xml

README.md

Custom Salesforce Ant

Deploy Salesforce metadata using Ant.

Fetch, delete and deploy Salesforce metadata using ant

Prequisite

Java Ant - Add ant to path in the System Environment

Setup

Update environment properties with Salesforce credentials for the target org

e.g. sandbox.properties, prod.properties

Development Usage

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

Meta

Paulo Orquillo – @olopsman

TODO

Generate a package.xml from describeMetadata

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b feature/fooBar)
  3. Commit your changes (git commit -am 'Add some fooBar')
  4. Push to the branch (git push origin feature/fooBar)
  5. Create a new Pull Request