diff --git a/linuxNew/Jenkinsfile b/linuxNew/Jenkinsfile index 3b32fcc56..c6d49d221 100644 --- a/linuxNew/Jenkinsfile +++ b/linuxNew/Jenkinsfile @@ -4,9 +4,9 @@ pipeline { agent { label NODE_LABEL } - options([ - buildDiscarder(logRotator(artifactDaysToKeepStr: '', artifactNumToKeepStr: '1', daysToKeepStr: '', numToKeepStr: '10')), - ]) + options { + buildDiscarder(logRotator(numToKeepStr: '10', artifactNumToKeepStr: '1')) + } parameters { string(name: 'PRODUCT', defaultValue: 'temurin') string(name: 'JDK_SOURCE', defaultValue: 'Adoptium')