Advertisement
Guest User

Untitled

a guest
Sep 23rd, 2016
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.87 KB | None | 0 0
  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();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement