> On 25.04.2016, at 18:06, Kesav Kumar Kolla <[email protected]> wrote: > > On the team project I configured Discard old Items. This setting is not > honored by the individual projects that's been created for each of my project. > > Is there any way to specify these project level settings in Jenkinsfile?
The folder level 'discard old items' is about deleting per-branch/per-repo _projects_ when their branch/repo no longer exists. To configure _build_ deletion for individual projects, use a snippet generator for 'properties: Set job properties' for your pipeline. It will look something like this: properties [[$class: 'BuildDiscarderProperty', strategy: [$class: 'LogRotator', artifactDaysToKeepStr: '', artifactNumToKeepStr: '', daysToKeepStr: '7', numToKeepStr: '10']]] Some documentation for this is here: https://jenkins.io/doc/pipeline/steps/workflow-multibranch/#properties-set-job-properties -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/63B7928B-A13A-4E65-BE42-03C1BDE083C6%40beckweb.net. For more options, visit https://groups.google.com/d/optout.
