Skip to content

Commit

Permalink
Update assemble
Browse files Browse the repository at this point in the history
  • Loading branch information
wulliam authored Jun 6, 2017
1 parent c93cdcd commit 613e7d9
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion sti/bin/assemble
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,17 @@ fi
buildType=$(echo "${MAVEN_BUILD_PIPELINE_TYPE}" | tr [:upper:] [:lower:])

if [ "${buildType}" == "true" ]; then

if [ $(ls ${DEPLOY_DIR}/*${APP_SUFFIX}.jar | wc -l) -gt 0 ]; then
echo "[INFO] Copying ${DEPLOY_DIR}/*${APP_SUFFIX}.jar into ${DEPLOY_DIR}/"
cp ${DEPLOY_DIR}/*${APP_SUFFIX}.jar ${DEPLOY_DIR}/
echo "[INFO] Application jar file is located in ${DEPLOY_DIR}/"
elif [ $(ls ${DEPLOY_DIR}/*${APP_SUFFIX}.war | wc -l) -gt 0 ]; then
echo "[INFO] Copying ${DEPLOY_DIR}/*${APP_SUFFIX}.war into ${DEPLOY_DIR}/"
cp ${DEPLOY_DIR}/*${APP_SUFFIX}.war ${DEPLOY_DIR}/
else
echo "[ERROR] No app.jar file located in ${DEPLOY_DIR}"
exit 1
fi

fi

Expand Down

0 comments on commit 613e7d9

Please sign in to comment.