forked from lftraining/LFS261-example-voting-app
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathJenkinsfile
45 lines (43 loc) · 834 Bytes
/
Jenkinsfile
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
pipeline {
agent any
stages{
stage("one"){
steps{
echo 'step 1'
sleep 3
}
}
stage("two"){
steps{
echo 'step 2'
sleep 9
}
}
stage("three"){
when{
branch 'master'
changeset "**/worker/**"
}
steps{
echo 'step 3'
sleep 2
}
}
stage("four"){
steps{
echo "step more"
}
}
stage("five-"){
steps{
echo "step more"
sleep 3
}
}
}
post{
always{
echo 'This pipeline is completed.'
}
}
}