.gitlab-ci.yml file is as follows:
stages:
- build
- deploy_test
-sharp compile
build:
stage: build
only:
- master
script:
- mvn clean
- mvn install
-sharp deployment test server
deploy_test:
stage: deploy_test
only:
- master
script:
- sh /app/application/hello/shutdown-server.sh
- cp /app/maven_repository/com/xyg/test/hello/0.0.1-SNAPSHOT/hello.jar /app/application/hello/hello.jar
- cd /app/application/hello/
- sh start-server.sh
- echo "Finish"
the content of echo is typed, and the service starts normally, but the task of job is always running,. Why? Everybody, please take a look at ~
.