39 lines
748 B
YAML
39 lines
748 B
YAML
version: 2
|
|
name: deploy分支流水线
|
|
description: "发版分支"
|
|
global:
|
|
concurrent: 1
|
|
trigger:
|
|
webhook: gitlink@1.0.0
|
|
event:
|
|
- ref: push
|
|
ruleset:
|
|
- param-ref: branch
|
|
operator: EQ
|
|
value: '"master"'
|
|
ruleset-operator: AND
|
|
workflow:
|
|
- ref: start
|
|
name: 开始
|
|
task: start
|
|
- ref: ssh_cmd_0
|
|
name: ssh执行命令
|
|
task: ssh_cmd@1.1.0
|
|
input:
|
|
ssh_private_key: ((SSH.pcm1))
|
|
ssh_ip: '"123.60.146.162"'
|
|
ssh_port: '"22"'
|
|
ssh_user: '"pcm"'
|
|
ssh_cmd: '"
|
|
cd /home/pcm/test2/cicdtest
|
|
&&
|
|
chmod +x build.sh
|
|
&&
|
|
sh build.sh "'
|
|
needs:
|
|
- start
|
|
- ref: end
|
|
name: 结束
|
|
task: end
|
|
needs:
|
|
- ssh_cmd_0 |