Hi I am wondering how I can get the last deployment id from Salesforce, it seems the object is DeployRequest but it is not API accessible?
When I get the id manually, I get the sobject type from the id, which returns DeployRequest.
What I have done in my ant script, is to output the deploy to a file, then use regex to get the deployment id, which is not ideal.
Using the migration tool sf deploy will print out the request id.
Is there a better way.