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

[cicd] 脚本测试17

上级 0697c9fa
流水线 #236 已失败 于阶段
in 4 秒
...@@ -10,6 +10,24 @@ cache: ...@@ -10,6 +10,24 @@ cache:
- .m2/repository - .m2/repository
- target/ - target/
before_script:
- echo '<?xml version="1.0" encoding="UTF-8"?>
<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>
<mirrors>
<mirror>
<id>nexus-aliyun</id>
<mirrorOf>central</mirrorOf>
<name>Nexus aliyun</name>
<url>http://maven.aliyun.com/nexus/content/groups/public</url>
</mirror>
</mirrors>
</settings>' > > $HOME/.m2/settings.xml
# 构建jar包 # 构建jar包
build: build:
stage: build stage: build
...@@ -17,7 +35,7 @@ build: ...@@ -17,7 +35,7 @@ build:
- java - java
script: script:
- pwd - pwd
- ls -al .m2/repository - cat $HOME/.m2/settings.xml
# - mvn clean package -DskipTests=true -P dev # - mvn clean package -DskipTests=true -P dev
# #
## 运行jar包 ## 运行jar包
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论