##// END OF EJS Templates
jenkinsfile: only keep the artifacts (test result xml files) of the last 10 builds
domruf -
r6850:58713c2e default
parent child Browse files
Show More
@@ -2,6 +2,12 b" def createvirtualenv = ''"
2 2 def activatevirtualenv = ''
3 3
4 4 node {
5 properties([[$class: 'BuildDiscarderProperty',
6 strategy: [$class: 'LogRotator',
7 artifactDaysToKeepStr: '',
8 artifactNumToKeepStr: '10',
9 daysToKeepStr: '',
10 numToKeepStr: '']]]);
5 11 if (isUnix()) {
6 12 createvirtualenv = 'rm -r $JENKINS_HOME/venv/$JOB_NAME || true && virtualenv $JENKINS_HOME/venv/$JOB_NAME'
7 13 activatevirtualenv = '. $JENKINS_HOME/venv/$JOB_NAME/bin/activate'
General Comments 0
You need to be logged in to leave comments. Login now