function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Sandy-SFDCSandy-SFDC 

Validation before the deployment with ANT

We are currently deploying using ANT or eclipse but to validate we are using only eclipse. 

Can we do validation using ANT. If so can any one please let me know how to do it.

 

Thanks in advance.

EIE50EIE50
Sandy-SFDCSandy-SFDC

Yes but I didnt see anything related to validation before the deployment. 

EIE50EIE50

Did you try something like this,

 

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

 Thanks.



SAKTHIVEL MSAKTHIVEL M
Here is the example for only to validate the components.
<target name="validate">
        <sf:deploy username="${sf.usernameValidate}" password="${sf.passwordValidate}" serverurl="${sf.serverurlValidate}" deployRoot="${sf.FolderValidate}" pollWaitMillis="10000" maxPoll="5000" checkOnly="true"/>
</target>

checkOnly = TRUE    -> only to validate
checkOnly = FALSE  -> validate & deploy


 
Avesh LakhaAvesh Lakha

Hi Guys,
 
Just commenting on old thread as it is still open.

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

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

Can you please let me know what else I need to resolve this?

Thanks,
Avesh