diff options
author | Christian Poessinger <christian@poessinger.com> | 2021-03-26 20:46:49 +0100 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2021-03-26 20:46:49 +0100 |
commit | d2cb0310ee4b5f29135c1c1ef92ad78a777c8201 (patch) | |
tree | 8206ce29b054c3035c5a919f62f6ca04b810a538 /packages/linux-kernel/Jenkinsfile | |
parent | 74cc758729cd8d27c34e4ad59e5181bf6112519b (diff) | |
download | vyos-build-d2cb0310ee4b5f29135c1c1ef92ad78a777c8201.tar.gz vyos-build-d2cb0310ee4b5f29135c1c1ef92ad78a777c8201.zip |
Kernel: Jenkins: cleanup, move LogRotator setting to pipeline options
Diffstat (limited to 'packages/linux-kernel/Jenkinsfile')
-rw-r--r-- | packages/linux-kernel/Jenkinsfile | 11 |
1 files changed, 2 insertions, 9 deletions
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 <http://www.gnu.org/licenses/>. - @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() |