Commit e647f2fb authored by root's avatar root
Browse files

pkill command usage. Added variable 'SH_PATH'.

parent d5704d9e
Pipeline #171910 passed with stages
in 5 minutes and 7 seconds
variables:
PORT_NO: 5000
SH_PATH: target/bin/simplewebapp
stages:
- build
......@@ -12,6 +13,8 @@ build-job:
script:
- echo "Build."
- mvn compile
- echo "Killing old running process."
- pkill -f $SH_PATH
test-job:
stage: test
......@@ -22,10 +25,10 @@ test-job:
deploy-test:
stage: deploy-staging
script:
- echo "Deploy to staging envirnment."
- echo "Deploy to staging environment."
- export PORT=$PORT_NO
- mvn package
- screen -m -d sh target/bin/simplewebapp
- screen -m -d sh $SH_PATH
interruptible: true
deploy-prod:
......
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