@@ -52,13 +52,23 @@ cp ${APP_DIR_INPOD}/buildfiles/${WS_NAME}.war ${APP_DIR_INPOD}/.
52
52
cp ${APP_DIR_INPOD} /buildfiles/${WS_NAME} Servlet.war ${APP_DIR_INPOD} /.
53
53
54
54
echo " Deploy ${APP_NAME} using curl:"
55
- echo -e " curl --noproxy '*' --silent --user ${USER} :${PASSWORD} -H X-Requested-By:MyClient -H Accept:application/json -H Content-Type:multipart/form-data -F \" model={ name: '${APP_NAME} ', targets: [ { identity: [ clusters, '${DEPLOY_TARGET} ' ] } ] }\" -F \" sourcePath=@${ARCHIVE_FILE_WS} \" -H \" Prefer:respond-async\" -X POST http://${HOST} :${PORT} /management/weblogic/latest/edit/appDeployments\n"
56
- curl --noproxy ' *' --silent --user ${USER} :${PASSWORD} -H X-Requested-By:MyClient -H Accept:application/json -H Content-Type:multipart/form-data -F " model={ name: '${APP_NAME} ', targets: [ { identity: [ clusters, '${DEPLOY_TARGET} ' ] } ] }" -F " sourcePath=@${ARCHIVE_FILE_WS} " -H " Prefer:respond-async" -X POST http://${HOST} :${PORT} /management/weblogic/latest/edit/appDeployments
55
+ echo -e " curl --noproxy '*' --silent --user ${USER} :${PASSWORD} -H X-Requested-By:MyClient -H Accept:application/json -H Content-Type:multipart/form-data -F \" model={ name: '${APP_NAME} ', targets: [ { identity: [ clusters, '${DEPLOY_TARGET} ' ] } ] }\" -F \" sourcePath=@${ARCHIVE_FILE_WS} \" -H \" Prefer:respond-async\" -X POST http://${HOST} :${PORT} /management/weblogic/latest/edit/appDeployments -o ${APP_DIR_INPOD} /deployWS.out \n"
56
+ curl --noproxy ' *' --silent --user ${USER} :${PASSWORD} -H X-Requested-By:MyClient -H Accept:application/json -H Content-Type:multipart/form-data -F " model={ name: '${APP_NAME} ', targets: [ { identity: [ clusters, '${DEPLOY_TARGET} ' ] } ] }" -F " sourcePath=@${ARCHIVE_FILE_WS} " -H " Prefer:respond-async" -X POST http://${HOST} :${PORT} /management/weblogic/latest/edit/appDeployments -o ${APP_DIR_INPOD} /deployWS.out
57
57
sleep 10
58
+ grep -q " STATE_RUNNING" ${APP_DIR_INPOD} /deployWS.out
59
+ cres=$?
60
+ [[ $cres != 0 ]] && echo " [FAIL] Unable to deploy wsapp ..."
61
+ [[ $cres == 0 ]] && echo " [SUCCESS] wsapp is deployed ..."
58
62
59
63
echo " Deploy ${APP_NAME} Servlet using curl:"
60
- echo -e " curl --noproxy '*' --silent --user ${USER} :${PASSWORD} -H X-Requested-By:MyClient -H Accept:application/json -H Content-Type:multipart/form-data -F \" model={ name: '${APP_NAME} servlet', targets: [ { identity: [ clusters, '${DEPLOY_TARGET} ' ] } ] }\" -F \" sourcePath=@${ARCHIVE_FILE_SERVLET} \" -H \" Prefer:respond-async\" -X POST http://${HOST} :${PORT} /management/weblogic/latest/edit/appDeployments\n"
61
- curl --noproxy ' *' --silent --user ${USER} :${PASSWORD} -H X-Requested-By:MyClient -H Accept:application/json -H Content-Type:multipart/form-data -F " model={ name: '${APP_NAME} servlet', targets: [ { identity: [ clusters, '${DEPLOY_TARGET} ' ] } ] }" -F " sourcePath=@${ARCHIVE_FILE_SERVLET} " -H " Prefer:respond-async" -X POST http://${HOST} :${PORT} /management/weblogic/latest/edit/appDeployments
64
+ echo -e " curl --noproxy '*' --silent --user ${USER} :${PASSWORD} -H X-Requested-By:MyClient -H Accept:application/json -H Content-Type:multipart/form-data -F \" model={ name: '${APP_NAME} servlet', targets: [ { identity: [ clusters, '${DEPLOY_TARGET} ' ] } ] }\" -F \" sourcePath=@${ARCHIVE_FILE_SERVLET} \" -H \" Prefer:respond-async\" -X POST http://${HOST} :${PORT} /management/weblogic/latest/edit/appDeployments -o ${APP_DIR_INPOD} /deployWSServlet.out\n"
65
+ curl --noproxy ' *' --silent --user ${USER} :${PASSWORD} -H X-Requested-By:MyClient -H Accept:application/json -H Content-Type:multipart/form-data -F " model={ name: '${APP_NAME} servlet', targets: [ { identity: [ clusters, '${DEPLOY_TARGET} ' ] } ] }" -F " sourcePath=@${ARCHIVE_FILE_SERVLET} " -H " Prefer:respond-async" -X POST http://${HOST} :${PORT} /management/weblogic/latest/edit/appDeployments -o ${APP_DIR_INPOD} /deployWSServlet.out
66
+ sleep 10
67
+ grep -q " STATE_RUNNING" ${APP_DIR_INPOD} /deployWSServlet.out
68
+ cres=$?
69
+ [[ $cres != 0 ]] && echo " [FAIL] Unable to deploy wsclientapp ..."
70
+ [[ $cres == 0 ]] && echo " [SUCCESS] wsclientapp is deployed ..."
71
+
62
72
63
73
rm -rf ${APP_DIR_INPOD} /buildfiles
64
74
0 commit comments