1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
|
---
- project:
name: "ob-promote-branch"
jobs:
- "ob-promote-branch-{src}-{dest}-ob-pipeline":
src: "unstable"
dest: "develop"
token: "C1E4270DBF346C1079D9CB2D9A798F15"
- "ob-promote-branch-{src}-{dest}-ob-pipeline":
src: "develop"
dest: "stage"
token: "E33114B6B8BDFA42FDCF0AB3E7C01B04"
- "ob-promote-branch-{src}-{dest}-ob-pipeline":
src: "stage"
dest: "master"
token: "A11B7C4C3AB3E3E77A2C8AADEAB6FC97"
- job-template:
name: "ob-promote-branch-{src}-{dest}-ob-pipeline"
project-type: pipeline
auth-token: "{token}"
dsl: |
pipeline {{
agent {{
node {{
label "openbook_v4"
customWorkspace "workspace/ob-promote-branch-{src}-{dest}"
}}
}}
stages {{
stage("openbook-core") {{
steps {{
git(poll: false, branch: "{dest}", url: "git@github.com:Talligent/openbook-core.git")
sh(script: "git push origin remotes/origin/{src}:{dest}")
}}
}}
stage("admin-api-server") {{
steps {{
git(poll: false, branch: "{dest}", url: "git@github.com:Talligent/admin-api-server.git")
sh(script: "git push origin remotes/origin/{src}:{dest}")
}}
}}
stage("admin-web-ui") {{
steps {{
git(poll: false, branch: "{dest}", url: "git@github.com:Talligent/admin-web-ui.git")
sh(script: "git push origin remotes/origin/{src}:{dest}")
}}
}}
stage("customer-api-server") {{
steps {{
git(poll: false, branch: "{dest}", url: "git@github.com:Talligent/customer-api-server.git")
sh(script: "git push origin remotes/origin/{src}:{dest}")
}}
}}
stage("customer-web-ui") {{
steps {{
git(poll: false, branch: "{dest}", url: "git@github.com:Talligent/customer-web-ui.git")
sh(script: "git push origin remotes/origin/{src}:{dest}")
}}
}}
stage("job-scheduler-server") {{
steps {{
git(poll: false, branch: "{dest}", url: "git@github.com:Talligent/job-scheduler-server.git")
sh(script: "git push origin remotes/origin/{src}:{dest}")
}}
}}
stage("workflow-server") {{
steps {{
git(poll: false, branch: "{dest}", url: "git@github.com:Talligent/workflow-server.git")
sh(script: "git push origin remotes/origin/{src}:{dest}")
}}
}}
}}
}}
|