daily pastebin goal
46%
SHARE
TWEET

Untitled

a guest Sep 23rd, 2016 80 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Request ID for the current retrieve task: 09SR0000001BtJJMA0
  2.    
  3. <!-- Try to Deploying to Dev Sandbox, if it takes more than 2 hours cancel deployment-->
  4. <target name="deployDEV">
  5.  
  6.   <sf:deploy username="${dev.username}" password="${dev.password}" sessionId="${dev.sessionId}" serverurl="${dev.serverurl}" maxPoll="${dev.maxPoll}" deployRoot="src" testlevel="NoTestRun" rollbackOnError="true"/>
  7.  
  8.   <property name="dev.asyncRequestId" value=" **[DEPLOYMENT'S REQUEST ID]** "/>
  9.  
  10.   <condition **[2 HOURS PASSED AND DEPLOYMENT IS NOT DONE]**>
  11.     <sf:cancelDeploy username="${dev.username}" password="${dev.password}" sessionId="${dev.sessionId}" serverurl="${dev.serverurl}" maxPoll="${dev.maxPoll}" requestId="${dev.asyncRequestId}"/>
  12.   </condition>
  13.  
  14. </target>
  15.    
  16. AsyncResult asyncResult = metadataConnection.deploy(zipBytes, deployOptions);
  17. String asyncResultId = asyncResult.getId();
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top