Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Request ID for the current retrieve task: 09SR0000001BtJJMA0
- <!-- Try to Deploying to Dev Sandbox, if it takes more than 2 hours cancel deployment-->
- <target name="deployDEV">
- <sf:deploy username="${dev.username}" password="${dev.password}" sessionId="${dev.sessionId}" serverurl="${dev.serverurl}" maxPoll="${dev.maxPoll}" deployRoot="src" testlevel="NoTestRun" rollbackOnError="true"/>
- <property name="dev.asyncRequestId" value=" **[DEPLOYMENT'S REQUEST ID]** "/>
- <condition **[2 HOURS PASSED AND DEPLOYMENT IS NOT DONE]**>
- <sf:cancelDeploy username="${dev.username}" password="${dev.password}" sessionId="${dev.sessionId}" serverurl="${dev.serverurl}" maxPoll="${dev.maxPoll}" requestId="${dev.asyncRequestId}"/>
- </condition>
- </target>
- AsyncResult asyncResult = metadataConnection.deploy(zipBytes, deployOptions);
- String asyncResultId = asyncResult.getId();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement