|
@@ -10,10 +10,10 @@ volumes: # 声明数据卷
|
|
|
path: /home/ABServer/cache/mvn_repo
|
|
path: /home/ABServer/cache/mvn_repo
|
|
|
- name: mvn_config
|
|
- name: mvn_config
|
|
|
host:
|
|
host:
|
|
|
- path: /home/ABServer/config/mvn/settings.xml
|
|
|
|
|
- - name: targetDir
|
|
|
|
|
|
|
+ path: /home/ABServer/config/mvn/
|
|
|
|
|
+ - name: uploadDir
|
|
|
host:
|
|
host:
|
|
|
- path: /home/ABServer/webroot/kxs-java/
|
|
|
|
|
|
|
+ path: /home/ABServer/webroot/kxs-gateway/
|
|
|
|
|
|
|
|
clone:
|
|
clone:
|
|
|
disable: false # 启用代码拉取
|
|
disable: false # 启用代码拉取
|
|
@@ -27,14 +27,14 @@ steps:
|
|
|
- name: mvn_repo # 数据卷名称
|
|
- name: mvn_repo # 数据卷名称
|
|
|
path: /usr/share/maven/repo # 容器内目录 绝对路径
|
|
path: /usr/share/maven/repo # 容器内目录 绝对路径
|
|
|
- name: targetDir
|
|
- name: targetDir
|
|
|
- path: /drone/src/kxs-product/target
|
|
|
|
|
|
|
+ path: /kxs-gateway/target
|
|
|
- name: mvn_config
|
|
- name: mvn_config
|
|
|
path: /usr/share/maven/conf/
|
|
path: /usr/share/maven/conf/
|
|
|
commands: # 执行命令
|
|
commands: # 执行命令
|
|
|
- pwd # 查看当前目录
|
|
- pwd # 查看当前目录
|
|
|
- - mvn clean package -Dmaven.test.skip=true -P test
|
|
|
|
|
|
|
+ - mvn clean package -Dmaven.test.skip=true -P dev
|
|
|
|
|
|
|
|
- - ls -l /drone/src/kxs-product/target # 查看当前目录
|
|
|
|
|
|
|
+ - pwd ./ # 查看当前目录
|
|
|
# - cp -a ./package.json /nodeServer1 && cp -a ./bootstrap.js /nodeServer1
|
|
# - cp -a ./package.json /nodeServer1 && cp -a ./bootstrap.js /nodeServer1
|
|
|
# - cp -a ./node_modules /nodeServer1
|
|
# - cp -a ./node_modules /nodeServer1
|
|
|
# - cp -a dist/* fwdocs
|
|
# - cp -a dist/* fwdocs
|