Giter Club home page Giter Club logo

sfdc-ant-build-script's Introduction

sfdc-ant-build-script

Build script for Salesforce projects

Prerequisites

  1. Install Java, ant, and the Force.com Migration Tool (ant-salesforce.jar)

  2. Copy ./build-sample.properties to ../../build.properties (two directories up)

  3. Update ../../build.properties with your own usernames and passwords

Commands

See the build.xml for the definitive list of commands. Typical syntax is:

ant dev2qa -Dversion=1.0

This will command will:

  • retrieve the Salesforce metadata from the dev environment based upon package-1.0.xml
  • store this metadata in a local folder called dev sprint 1.0
  • copy destructiveChanges-1.0.xml (if it exists) to dev sprint 1.0/destructiveChanges.xml
  • deploy this metadata to the qa environment

Our environment flow looks like:

Environment Flow

Often used commands are:


ant local2dev -Dversion=1.0 -Dsource=dev
ant local2itdev -Dversion=1.0 -Dsource=dev
ant dev2full -Dversion=1.0
ant qa2full -Dversion=1.0
ant itdev2full -Dversion=1.0
ant itdev2full-specified-tests -Dversion=1.0 -DspecifiedTests=TestClassName
ant full2prod -Dversion=1.0
ant full2prod-specified-tests -Dversion=1.0 -DspecifiedTests=TestClassName

Optional parameters exist for checkOnly and/or runAllTests (which default to false). For example:

ant dev2qa -Dversion=3.6 -DcheckOnly=true -DrunAllTests=true

sfdc-ant-build-script's People

Contributors

appirioit avatar bruzzi avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.