Add a timeout to the Jenkinsfile and increase the number of kept builds.

This commit is contained in:
Username404-59 2021-03-24 16:58:48 +01:00
parent e0112a367a
commit dfe21742e3
Signed by: Username404-59
GPG Key ID: 7AB361FBB257A5D1
1 changed files with 2 additions and 1 deletions

3
Jenkinsfile vendored
View File

@ -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]
])