0 Replies Latest reply on Feb 17, 2014 5:31 AM by Sathish Kumar

    How to find out the deployment is present or not using shell script?

    Sathish Kumar Newbie

      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



      Could you please help to find out, how to check whether the deployment is present or not in shell script??