Commit cf0314a8 authored by root's avatar root
Browse files

[mk3918][ieo119] Run simplewebapp in detached session and add echoes

parent b406836b
Pipeline #170770 passed with stages
in 21 seconds
variables:
PORT_NO: 5000
build-job:
stage: build
script:
- fuser -k -n tcp 5000
- echo "Killing process at port $PORT_NO.\n"
- fuser -k $PORT_NO/tcp
- echo "Buildling.\n"
- mvn compile
test-job:
stage: test
script:
- echo "Running tests.\n"
- mvn test
deploy-prod:
stage: deploy
script:
- echo "Running web app.\n"
- mvn package
- export PORT=5000
- sh target/bin/simplewebapp &
- export PORT=$PORT_NO
- screen -m -d sh target/bin/simplewebapp
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