Hi Guys,
I have a shell script, which is used to deploy the EAR file. The script having two parts:
1) undeploy the existing deployment
2) Deploy the new EAR
If deployment presents, then it's easily undploy the od EAR and deployed the EAR without any error. But, In certain cases, In the undeploymnet got succeed and the deployment got failed due to some reason, I'm getting the below error while run the script again.
[jbossadm@localhost bin]$ ./deploy_undeploy.sh
started deploying
Undeploy failed: {"JBAS014653: Composite operation failed and was rolled back. Steps that failed:" => {"Operation step-1" => "JBAS014807: Management resource '[(\"deployment\" => \"Sample.ear\")]' not found"}}
deployment failed
[jbossadm@localhost]
Could you please help to find out, how to check whether the deployment is present or not in shell script??