From d2cb0310ee4b5f29135c1c1ef92ad78a777c8201 Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Fri, 26 Mar 2021 20:46:49 +0100 Subject: Kernel: Jenkins: cleanup, move LogRotator setting to pipeline options --- packages/linux-kernel/Jenkinsfile | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) (limited to 'packages/linux-kernel/Jenkinsfile') diff --git a/packages/linux-kernel/Jenkinsfile b/packages/linux-kernel/Jenkinsfile index 9bdc898f..8c68aa1f 100644 --- a/packages/linux-kernel/Jenkinsfile +++ b/packages/linux-kernel/Jenkinsfile @@ -1,4 +1,4 @@ -// Copyright (C) 2019-2020 VyOS maintainers and contributors +// Copyright (C) 2019-2021 VyOS maintainers and contributors // // This program is free software; you can redistribute it and/or modify // in order to easy exprort images built to "external" world @@ -12,20 +12,12 @@ // // You should have received a copy of the GNU General Public License // along with this program. If not, see . - @NonCPS // Using a version specifier library, use 'current' branch. The underscore (_) // is not a typo! You need this underscore if the line immediately after the // @Library annotation is not an import statement! @Library('vyos-build@current')_ - -/* Only keep the most recent builds. */ -def projectProperties = [ - [$class: 'BuildDiscarderProperty',strategy: [$class: 'LogRotator', numToKeepStr: '1']], -] - -properties(projectProperties) setDescription() node('Docker') { @@ -60,6 +52,7 @@ pipeline { disableConcurrentBuilds() timeout(time: 120, unit: 'MINUTES') timestamps() + buildDiscarder(logRotator(numToKeepStr: '5')) } environment { DEBIAN_ARCH = sh(returnStdout: true, script: 'dpkg --print-architecture').trim() -- cgit v1.2.3