Skip to content

Commit c7298f6

Browse files
committed
DATAREDIS-1380 - Add timeouts to Jenkins stages.
1 parent 528090c commit c7298f6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Jenkinsfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ pipeline {
1919
}
2020
}
2121
agent any
22+
options { timeout(time: 20, unit: 'MINUTES') }
2223

2324
steps {
2425
script {
@@ -39,6 +40,7 @@ pipeline {
3940
args '-v $HOME/.m2:/tmp/spring-data-maven-repository'
4041
}
4142
}
43+
options { timeout(time: 30, unit: 'MINUTES') }
4244
steps {
4345
sh 'rm -rf ?'
4446

@@ -75,6 +77,7 @@ pipeline {
7577
args '-v $HOME/.m2:/tmp/spring-data-maven-repository'
7678
}
7779
}
80+
options { timeout(time: 20, unit: 'MINUTES') }
7881

7982
environment {
8083
ARTIFACTORY = credentials('02bd1690-b54f-4c9f-819d-a77cb7a9822c')
@@ -96,6 +99,7 @@ pipeline {
9699
args '-v $HOME/.m2:/tmp/spring-data-maven-repository'
97100
}
98101
}
102+
options { timeout(time: 20, unit: 'MINUTES') }
99103

100104
environment {
101105
ARTIFACTORY = credentials('02bd1690-b54f-4c9f-819d-a77cb7a9822c')

0 commit comments

Comments
 (0)