From d534169e9ab733fd986667c87b16fdb7a6f38a2b Mon Sep 17 00:00:00 2001 From: Wolfgang Knopki <wolfgang.knopki@hft-stuttgart.de> Date: Fri, 22 Nov 2019 16:42:55 +0100 Subject: [PATCH] [cicd] deployment to testserver, curl syntax fixed --- .gitlab-ci.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 27bb343..b197ac9 100755 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -33,8 +33,9 @@ pages-devel: - cp -r includes .public - cp *.html .public - mv .public public - - UPLOADPATH=file://$(pwd)/public - - curl --upload-file $UPLOADPATH -u tomcat:$TOMCATPASS "https://m4lab.hft-stuttgart.de/manager/text/deploy?path=/ROOT&update=true" + - cd public + - jar -cvf ROOT.war * + - curl --upload-file ROOT.war -u tomcat:$TOMCATPASS "https://m4lab.hft-stuttgart.de/manager/text/deploy?path=/ROOT&update=true" artifacts: paths: - public -- GitLab