-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathparallel-2
66 lines (63 loc) · 932 Bytes
/
parallel-2
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
pipeline {
agent any;
stages {
stage ("BUILD") {
agent { label 'master' }
steps {
echo "THIS IS BUILD STAGE"
sh '''
sleep 5
exit 0
'''
}
}
stage ("PARALLEL TEST") {
parallel {
stage ("TEST ON CHROME") {
steps {
echo "This is a test on CHROME"
sh '''
sleep 5
'''
}
}
stage ("TEST ON FIREFOX") {
steps {
echo "This is a test on FIREFOX"
sh '''
sleep 5
'''
}
}
}
}
stage ("DEPLOY") {
parallel {
stage ("SERVER 1") {
steps {
echo "This is on SERVER1"
sh '''
sleep 5
'''
}
}
stage ("SERVER 2") {
steps {
echo "This is on SERVER2"
sh '''
sleep 5
'''
}
}
stage ("SERVER 3") {
steps {
echo "This is on SERVER3"
sh '''
sleep 5
'''
}
}
}
}
}
}