提交 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. java_buid:
# To keep cache across branches add 'key: "$CI_JOB_NAME"'
cache:
paths:
- .m2/repository
- target/
# 构建jar包
build:
stage: build stage: build
tags:
- java
script: script:
- mvn clean package -DskipTests=true -p dev - echo 'build'
# 运行jar包 java_deploy:
deploy:
stage: deploy stage: deploy
tags:
- java
script: script:
- nohup java -jar *.jar & - echo 'deploy'
\ No newline at end of file \ No newline at end of file
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论