Posted: 10 Jun 2016 10:39 EDT Last activity: 13 Jun 2016 5:44 EDT
How to know the status of a RAP deployment from a CI tool
We are working on building a pipeline two jobs ( one for deployment and another one for executing a series of tests in target system). We are planning to use command line utilities provided by Pega to perform the deployment to target system. The 'migrate' command is submitting the migration request and 'getMigrationLog' command is giving logs which contains Status of the deployment ( In-Progress / Failed / Success).
Is there a way to know if the deployment is successful or not so that the test execution job can be triggered only when deployment is successful?
migrate, getMigrationLogs, getImportLogs internally calls SOAP services which you can find under Records in Designer Studio.
So one approach can be, call the migrate SOAP service directly using your SOAP client instead of using migrate utility and check the status code from the SOAP response to decide if the deployment is succesful or not.