提交 862b38d3 authored 作者: Matrix's avatar Matrix

[cicd] 脚本测试19

上级 1fef5e25
流水线 #238 已通过 于阶段
in 5 秒
image: maven:3.3.9-jdk-8
variables:
MAVEN_OPTS: "-Dmaven.repo.local=/cache/.m2/repository --settings $HOME/.m2/settings.xml"
MAVEN_CLI_OPTS: "--batch-mode --errors --fail-at-end --show-version -DinstallAtEnd=true"
stages:
- build
- deploy
......@@ -7,7 +12,7 @@ stages:
# To keep cache across branches add 'key: "$CI_JOB_NAME"'
cache:
paths:
- .m2/repository
- /cache/.m2/repository
- target/
before_script:
......@@ -15,7 +20,7 @@ before_script:
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd">
<localRepository>/Users/matrix/code/maven-repository</localRepository>
<localRepository>/cache/.m2/repository</localRepository>
<mirrors>
<mirror>
......@@ -34,6 +39,7 @@ build:
tags:
- java
script:
- cd $HOME
- pwd
- cat $HOME/.m2/settings.xml
# - mvn clean package -DskipTests=true -P dev
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论