Monday, March 9, 2015

Validation before the deployment with ANT

We can do deployment from one org to another using eclipse or Ant migration tool.  To validate the deployments we have an option Validate deployment in eclipse. Where it does a  deployment check and never actually saves to the server. We can do same by using Ant using  A task called deployCodeCheckOnly.

   <target name="deployCodeCheckOnly">
      <sf:deploy username="${sf.username}" password="${sf.password}" serverurl="${sf.serverurl}" maxPoll="${sf.maxPoll}" deployRoot="retrieveUnpackaged" checkOnly="true"/>
    </target>

Thanks,
Naveen.
http://www.autorabit.com/

1 comment:

  1. Even If I am running the same command then Deployment is initiated instead of validatin

    ReplyDelete