Skip to content

Commit 81dc4b8

Browse files
authored
Create a Jenkinsfile which can run for a long time (#23)
1 parent aa81300 commit 81dc4b8

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

Diff for: Jenkinsfile_longrun.groovy

+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
pipeline {
2+
agent any
3+
4+
stages {
5+
stage('one') {
6+
steps {
7+
script {
8+
for (i = 0; i < 60; i++) {
9+
sleep 1
10+
echo "1"
11+
}
12+
}
13+
}
14+
}
15+
stage('two') {
16+
steps {
17+
script {
18+
for (i = 0; i < 60; i++) {
19+
sleep 1
20+
echo "1"
21+
}
22+
}
23+
}
24+
}
25+
stage('three') {
26+
steps {
27+
script {
28+
for (i = 0; i < 60; i++) {
29+
sleep 1
30+
echo "1"
31+
}
32+
}
33+
}
34+
}
35+
}
36+
}

0 commit comments

Comments
 (0)