This tutorial shows you how to deploy an Ant Package using the Deployment Wizard.


1. From the Ant Package builder select "Deployment Wizard


or the Ant Packages panel select "Deploy To".


2. At the new window click on "Connect" and select the target instance.


3. Once connected, set the deployment options.

Connect

Opens the Connection wizard to establish a connection to the target instance.

Start

Starts the deployment process.

Stop

Stops the deployment process.

Target

The name of the target instance.

Package

The location of the Ant package.

Max Attempts

The number of pooling attempts the wizard is to attempt during the deployment process.

Interval

The amount of seconds between each pooling interval.

Run All Test

If true, all Apex tests defined in the organization are run.

Rollback on Error

Indicates whether any failure causes a complete rollback (true) or not (false). If false, whatever set of actions can be performed without errors are performed, and errors are returned for the remaining actions.

Ignore Warnings

Indicates whether a warning should allow a deployment to complete successfully (true) or not (false). Defaults to false.

On Check Only

Indicates whether Apex classes and triggers are saved to the organization as part of the deployment (false) or not (true). Defaults to false.

Allow Missing Files

Specifies whether a deploy succeeds even if files that are specified in package.xml but are not in the .zip file (true or not false).


4. Click "Start" and monitor results.

State

Queued: This call has not started. It is waiting in a queue.


InProgress: This call has started, but has not completed yet.


Completed: This call has completed.


Error: An error occurred, see the statusCode for more information.

Status Code

If an error occurred, the status code is listed here.

Message

Message corresponding to the statusCode field returned, if any.

Total Tests

The total number of Apex tests in the deployment.

Total Completed

The number of Apex tests that have completed so far for this deployment.

Total Errors

The number of Apex tests that have generated errors during this deployment.

Components Total

The total number of components in the deployment.

Components Deployed

The number of components that have been deployed so far for this deployment.

Component Errors

The number of components that generated errors during this deployment.



Saving Deployment Details

When closing the wizard, if the deployment process is still active, you will be promoted to save the details of the deployment. This will allow you to check the status of the deployment at a later time.