-
Notifications
You must be signed in to change notification settings - Fork 0
/
Sequential_multi_pipeline.xml
48 lines (48 loc) · 1.45 KB
/
Sequential_multi_pipeline.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
<!-- Two pipline
First get trigger on git chekin
Seconds get Trigger on cimletion of first
Second pipeline also publises artifact
-->
<pipelines group="defaultGroup">
<pipeline name="FirstPipeline">
<materials>
<git url="https://github.com/ganeshpachpind/goWorkshop.git" materialName="GOWorkshop" />
</materials>
<stage name="ListFiles">
<jobs>
<job name="List">
<tasks>
<exec command="ls" />
</tasks>
<artifacts>
<artifact src="*" dest="goWorkshop" />
</artifacts>
</job>
</jobs>
</stage>
</pipeline>
<pipeline name="ExecutePython">
<materials>
<pipeline pipelineName="FirstPipeline" stageName="ListFiles" />
</materials>
<stage name="Execute">
<jobs>
<job name="Run">
<tasks>
<fetchartifact pipeline="FirstPipeline" stage="ListFiles" job="List" srcdir="goWorkshop">
<runif status="passed" />
</fetchartifact>
<exec command="/bin/bash" workingdir="goWorkshop">
<arg>-c</arg>
<arg>python create_file.python</arg>
<runif status="passed" />
</exec>
</tasks>
<artifacts>
<artifact src="goWorkshop" />
</artifacts>
</job>
</jobs>
</stage>
</pipeline>
</pipelines>