Mercurial > kallithea
changeset 6925:58713c2ebfff
jenkinsfile: only keep the artifacts (test result xml files) of the last 10 builds
author | domruf <dominikruf@gmail.com> |
---|---|
date | Wed, 20 Sep 2017 23:08:35 +0200 |
parents | 0acb46763886 |
children | 32440c07a085 |
files | Jenkinsfile |
diffstat | 1 files changed, 6 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/Jenkinsfile Mon Aug 21 21:42:28 2017 +0200 +++ b/Jenkinsfile Wed Sep 20 23:08:35 2017 +0200 @@ -2,6 +2,12 @@ def activatevirtualenv = '' node { + properties([[$class: 'BuildDiscarderProperty', + strategy: [$class: 'LogRotator', + artifactDaysToKeepStr: '', + artifactNumToKeepStr: '10', + daysToKeepStr: '', + numToKeepStr: '']]]); if (isUnix()) { createvirtualenv = 'rm -r $JENKINS_HOME/venv/$JOB_NAME || true && virtualenv $JENKINS_HOME/venv/$JOB_NAME' activatevirtualenv = '. $JENKINS_HOME/venv/$JOB_NAME/bin/activate'