ci: add 3 hour timeout for jobs (#3266)

Resolves: https://github.com/status-im/nimbus-eth2/issues/3264

Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
Jakub 2022-01-10 13:07:08 +01:00 committed by GitHub
parent ae61512ee9
commit 6f4109c336
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

16
Jenkinsfile vendored
View File

@ -94,18 +94,22 @@ def runStages() {
parallel(
"Linux": {
throttle(['nimbus-eth2']) {
node("linux") {
withEnv(["NPROC=${sh(returnStdout: true, script: 'nproc').trim()}"]) {
runStages()
timeout(time: 3, unit: 'HOURS') {
node("linux") {
withEnv(["NPROC=${sh(returnStdout: true, script: 'nproc').trim()}"]) {
runStages()
}
}
}
}
},
"macOS": {
throttle(['nimbus-eth2']) {
node("macos && x86_64") {
withEnv(["NPROC=${sh(returnStdout: true, script: 'sysctl -n hw.logicalcpu').trim()}"]) {
runStages()
timeout(time: 3, unit: 'HOURS') {
node("macos && x86_64") {
withEnv(["NPROC=${sh(returnStdout: true, script: 'sysctl -n hw.logicalcpu').trim()}"]) {
runStages()
}
}
}
}