I have created a jacl script which deploys application on the WebSphere Application Server and works as expected.
1.Stops App Server
2.uninstalls previous version of app
4.Starts App Server
At times when the deployment fails due to ear file issues. The script exits and there is no application deployed. Next time when I try to deploy the application using this script the script fails to stop the application server as it is already stopped and also fails to uninstall the apps as there is no app installed previously due to failure.
Can some one help me with putting some checks in the jacl script for following 2 conditions
1. If the application server is stopped ignore it
2. If the Apps is not installed previously skip the uninstall step