Skip to content

Commit

Permalink
Add timeout to Jenkins builds
Browse files Browse the repository at this point in the history
If a build takes longer than an hour, then somethings gone wrong
and it's better to fail the build instead of pretending everything
is fine.
  • Loading branch information
adrianclay committed Oct 20, 2023
1 parent d1a6502 commit 8eacecb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ pipeline {
options {
timestamps()
buildDiscarder(logRotator(numToKeepStr: "10"))
timeout(time: 1, unit: 'HOURS')
}

environment {
Expand Down

0 comments on commit 8eacecb

Please sign in to comment.