-
Notifications
You must be signed in to change notification settings - Fork 5
/
go-pipelineconf.xml
184 lines (184 loc) · 6.56 KB
/
go-pipelineconf.xml
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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
<?xml version="1.0" encoding="utf-8"?>
<cruise xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="cruise-config.xsd" schemaVersion="87">
<server artifactsdir="artifacts" agentAutoRegisterKey="123456789abcdef" commandRepositoryLocation="default" serverId="9a14b4cf-925f-4066-aff7-da60ced5fd39" />
<pipelines group="Doodleshop">
<pipeline name="DoodleshopBAT" labeltemplate="1.0.${COUNT}" isLocked="false">
<params>
<param name="SOURCE_DIR" />
</params>
<trackingtool link="https://github.com/dmarell/doodleshop/issues/${ID}" regex="##(\d+)" />
<environmentvariables>
<variable name="DOCKER_USER">
<value>sennerholm</value>
</variable>
<variable name="DOCKER_PASSWORD" secure="true">
<encryptedValue>vX4fDGJojooSM1ADqHWMSg==</encryptedValue>
</variable>
</environmentvariables>
<materials>
<git url="https://github.com/sennerholm/doodleshop" materialName="src" />
</materials>
<stage name="Build">
<jobs>
<job name="Build2DockerImage">
<tasks>
<exec command="bash">
<arg>scripts/build.sh</arg>
<runif status="passed" />
</exec>
</tasks>
<artifacts>
<artifact src="#{SOURCE_DIR}artifacts" dest="downstream" />
</artifacts>
</job>
</jobs>
</stage>
<stage name="AutoSmallDeployAndTest" fetchMaterials="false">
<environmentvariables>
<variable name="DOODLE_ENV">
<value>autosmall</value>
</variable>
</environmentvariables>
<jobs>
<job name="DeployAndTests">
<tasks>
<fetchartifact pipeline="DoodleshopBAT" stage="Build" job="Build2DockerImage" srcdir="downstream/artifacts">
<runif status="passed" />
</fetchartifact>
<exec command="bash" workingdir="artifacts/scripts">
<arg>deployandsmoke.sh</arg>
<arg>2</arg>
<runif status="passed" />
</exec>
<exec command="bash" workingdir="artifacts/scripts">
<arg>runtest.sh</arg>
<arg>2</arg>
<runif status="passed" />
</exec>
</tasks>
</job>
</jobs>
</stage>
</pipeline>
<pipeline name="DoodleshopAutoLarge" labeltemplate="${DoodleshopBAT}-al${COUNT}" isLocked="false">
<materials>
<pipeline pipelineName="DoodleshopBAT" stageName="AutoSmallDeployAndTest" />
</materials>
<stage name="AutoLargeDeployAndTest" fetchMaterials="false">
<environmentvariables>
<variable name="DOODLE_ENV">
<value>autolarge</value>
</variable>
</environmentvariables>
<jobs>
<job name="DeployAndTests">
<tasks>
<fetchartifact pipeline="DoodleshopBAT" stage="Build" job="Build2DockerImage" srcdir="downstream">
<runif status="passed" />
</fetchartifact>
<exec command="bash" workingdir="downstream/scripts">
<arg>deployandsmoke.sh</arg>
<arg>3</arg>
<runif status="passed" />
</exec>
<exec command="bash" workingdir="downstream/scripts">
<arg>runtest.sh</arg>
<arg>3</arg>
<runif status="passed" />
</exec>
</tasks>
</job>
</jobs>
</stage>
</pipeline>
<pipeline name="DoodleshopUAT" labeltemplate="${DoodleshopBAT}-uat${COUNT}" isLocked="false">
<materials>
<pipeline pipelineName="DoodleshopBAT" stageName="AutoSmallDeployAndTest" />
</materials>
<stage name="NotifyTesters">
<jobs>
<job name="sendMail">
<tasks>
<exec command="/bin/true" />
</tasks>
</job>
</jobs>
</stage>
<stage name="UATDeploy" fetchMaterials="false">
<approval type="manual" />
<environmentvariables>
<variable name="DOODLE_ENV">
<value>uat</value>
</variable>
</environmentvariables>
<jobs>
<job name="DeployAndSmokeTests">
<tasks>
<fetchartifact pipeline="DoodleshopBAT" stage="Build" job="Build2DockerImage" srcdir="downstream">
<runif status="passed" />
</fetchartifact>
<exec command="bash" workingdir="downstream/scripts">
<arg>deployandsmoke.sh</arg>
<arg>4</arg>
<runif status="passed" />
</exec>
</tasks>
</job>
</jobs>
</stage>
<stage name="TestsOk">
<approval type="manual" />
<jobs>
<job name="LoggTestReport">
<tasks>
<exec command="echo">
<arg>Not implemented yet!</arg>
</exec>
</tasks>
</job>
</jobs>
</stage>
</pipeline>
<pipeline name="DoodleshopProd" labeltemplate="${DoodleshopAutoLarge}-pr${COUNT}" isLocked="false">
<materials>
<pipeline pipelineName="DoodleshopUAT" stageName="TestsOk" materialName="DoodleshopUAT" />
<pipeline pipelineName="DoodleshopAutoLarge" stageName="AutoLargeDeployAndTest" materialName="DoodleshopAutoLarge" />
</materials>
<stage name="CreateReportsForDecision">
<jobs>
<job name="createreports">
<tasks>
<exec command="echo">
<arg>Not Implemented</arg>
</exec>
</tasks>
</job>
</jobs>
</stage>
<stage name="ProdDeploy" fetchMaterials="false">
<approval type="manual" />
<environmentvariables>
<variable name="DOODLE_ENV">
<value>prod</value>
</variable>
</environmentvariables>
<jobs>
<job name="DeployAndSmokeTests">
<tasks>
<fetchartifact pipeline="DoodleshopBAT/DoodleshopUAT" stage="Build" job="Build2DockerImage" srcdir="downstream">
<runif status="passed" />
</fetchartifact>
<exec command="bash" workingdir="downstream/scripts">
<arg>deployandsmoke.sh</arg>
<arg>5</arg>
<runif status="passed" />
</exec>
</tasks>
</job>
</jobs>
</stage>
</pipeline>
</pipelines>
<agents>
</agents>
</cruise>