test/.devops/git test.yml

59 lines
1.2 KiB
YAML

version: 2
name: git test
description: ""
global:
concurrent: 1
workflow:
- ref: start
name: 开始
task: start
- ref: git_clone_0
name: 测试环境
task: git_clone@1.2.6
input:
remote_url: '"https://testgitea.trustie.net/generations/demo.git"'
ref: '"refs/heads/master"'
commit_id: '""'
depth: 1
needs:
- start
- ref: end
name: 结束
task: end
needs:
- git_clone_0
- git_clone_1
- git_clone_2
- git_clone_3
- ref: git_clone_1
name: 生产环境
task: git_clone@1.2.6
input:
remote_url: '"https://gitlink.org.cn/llaaoojjii/test.git"'
ref: '"refs/heads/master"'
commit_id: '""'
depth: 1
needs:
- start
- ref: git_clone_2
name: 测试环境2
task: git_clone@1.2.6
input:
remote_url: '"https://testgitea2.trustie.net/generations/demo.git"'
ref: '"refs/heads/master"'
commit_id: '""'
depth: 1
needs:
- start
- ref: git_clone_3
name: testforgeplus
task: git_clone@1.2.6
input:
remote_url: '"https://testforgeplus.trustie.net/generations/demo.git"'
ref: '"refs/heads/master"'
commit_id: '""'
depth: 1
needs:
- start