|
|
@ -4,12 +4,12 @@ type: docker
|
|
|
|
name: 测试流水线
|
|
|
|
name: 测试流水线
|
|
|
|
platform:
|
|
|
|
platform:
|
|
|
|
os: linux
|
|
|
|
os: linux
|
|
|
|
arch: amd64
|
|
|
|
arch: arm64
|
|
|
|
steps:
|
|
|
|
steps:
|
|
|
|
- name: maven
|
|
|
|
- name: maven
|
|
|
|
image: maven:3-jdk-10
|
|
|
|
image: maven:3-jdk-10
|
|
|
|
commands:
|
|
|
|
commands:
|
|
|
|
- mvn install -DskipTests=true
|
|
|
|
- mvn install -DskipTests=tru
|
|
|
|
# 本模板示例为上传软件包和部署脚本到home目录
|
|
|
|
# 本模板示例为上传软件包和部署脚本到home目录
|
|
|
|
# host、username、password可在参数管理中配置
|
|
|
|
# host、username、password可在参数管理中配置
|
|
|
|
- name: 上传文件
|
|
|
|
- name: 上传文件
|
|
|
@ -21,7 +21,7 @@ steps:
|
|
|
|
from_secret: deploy_name
|
|
|
|
from_secret: deploy_name
|
|
|
|
password:
|
|
|
|
password:
|
|
|
|
from_secret: deploy_pwd
|
|
|
|
from_secret: deploy_pwd
|
|
|
|
port: 3522
|
|
|
|
port: 22
|
|
|
|
command_timeout: 2m
|
|
|
|
command_timeout: 2m
|
|
|
|
target: /opt/demo
|
|
|
|
target: /opt/demo
|
|
|
|
source:
|
|
|
|
source:
|
|
|
@ -38,7 +38,7 @@ steps:
|
|
|
|
from_secret: deploy_name
|
|
|
|
from_secret: deploy_name
|
|
|
|
password:
|
|
|
|
password:
|
|
|
|
from_secret: deploy_pwd
|
|
|
|
from_secret: deploy_pwd
|
|
|
|
port: 3522
|
|
|
|
port: 22
|
|
|
|
script:
|
|
|
|
script:
|
|
|
|
- echo ====暂停容器开始11=======
|
|
|
|
- echo ====暂停容器开始11=======
|
|
|
|
- docker rm -f mo-test
|
|
|
|
- docker rm -f mo-test
|
|
|
|