提交 0313441c authored 作者: Matrix's avatar Matrix

[cicd] 添加cicd的功能

上级 6bea44a3
image: maven:3.3.9-jdk-8
# Cache downloaded dependencies and plugins between builds.
# To keep cache across branches add 'key: "$CI_JOB_NAME"'
cache:
paths:
- .m2/repository
- target/
# 构建jar包
build:
stage: build
script:
- mvn clean package -DskipTests=true -p dev
# 运行jar包
deploy:
stage: deploy
script:
- nohup java -jar *.jar &
\ No newline at end of file
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论