Commit cc34422c authored by zhouzihao's avatar zhouzihao

conf

parent 29b32554
Pipeline #93 failed
image: maven:3.6.0-jdk-8-alpine
stages:
- build
- deploy
......@@ -12,15 +10,29 @@ cache:
variables:
MAVEN_OPTS: "-Dmaven.repo.local=.m2"
# 打包
dep:
image: maven:3.6.0-jdk-8-alpine
stage: build
script:
- mvn clean package -Dmaven.test.skip=true
artifacts:
paths:
- target/
expire_in: 1 week
# 复制文件
cp:
stage: build
script:
- rm /root/tmpdata/*.jar
- cp target/app.jar /root/tmpdata/
dependencies:
- dep
tags:
- 'zzh-test'
# 测试环境部署
run:
stage: deploy
......
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