提交 f5963d92 authored 作者: Matrix's avatar Matrix

[cicd] 脚本测试

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