From dfe21742e3a6c750c6cb9178f92cc3e1fdcb6de9 Mon Sep 17 00:00:00 2001 From: Username404-59 Date: Wed, 24 Mar 2021 16:58:48 +0100 Subject: [PATCH] Add a timeout to the Jenkinsfile and increase the number of kept builds. --- Jenkinsfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 8703d65..ae9bbbc 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -2,7 +2,8 @@ pipeline { // Multi-branch pipeline script for Yerbacon. agent any options { - buildDiscarder(logRotator(numToKeepStr: '12', artifactNumToKeepStr: '14')) + buildDiscarder(logRotator(numToKeepStr: '48', artifactNumToKeepStr: '96')) + timeout(time: 8, unit: 'MINUTES') sidebarLinks([ [displayName: 'Gitea Repository', iconFileName: '/userContent/Yerbacon.png', urlName: 'https://gits.username404.fr/Username404-59/Yerbacon/src/branch/' + env.BRANCH_NAME] ])