Commit d839f196 authored by Daniel Gerhardt's avatar Daniel Gerhardt

Adjust curl command parameters

* Fail build on HTTP upload errors
* Undeploy application before deployment
* Fix Tomcat deployment path
parent 38b56bc4
...@@ -66,11 +66,11 @@ tomcat_production: ...@@ -66,11 +66,11 @@ tomcat_production:
only: only:
- production - production
script: script:
- curl --upload-file "$WAR_FILE" "https://$PROD_TOMCAT_USER:$PROD_TOMCAT_PASSWORD@$PROD_TOMCAT_HOST/manager/deploy?path=%2Fapi" - curl --fail --upload-file "$WAR_FILE" "https://$PROD_TOMCAT_USER:$PROD_TOMCAT_PASSWORD@$PROD_TOMCAT_HOST/manager/text/deploy?path=%2Fapi&update=true"
tomcat_development: tomcat_development:
stage: deploy stage: deploy
only: only:
- staging - staging
script: script:
- curl --upload-file "$WAR_FILE" "https://$DEV_TOMCAT_USER:$DEV_TOMCAT_PASSWORD@$DEV_TOMCAT_HOST/manager/deploy?path=%2Fapi" - curl --fail --upload-file "$WAR_FILE" "https://$DEV_TOMCAT_USER:$DEV_TOMCAT_PASSWORD@$DEV_TOMCAT_HOST/manager/text/deploy?path=%2Fapi&update=true"
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment