Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-38239

"Discard Old Builds" parameters as a environmental variable

XMLWordPrintable

      <jenkins.model.BuildDiscarderProperty>
      <strategy class="hudson.tasks.LogRotator">
      <daysToKeep>7</daysToKeep>
      <numToKeep>10</numToKeep>
      <artifactDaysToKeep>-1</artifactDaysToKeep>
      <artifactNumToKeep>-1</artifactNumToKeep>
      </strategy>
      </jenkins.model.BuildDiscarderProperty>

      Is there any way, we can create discard old builds parameters as a environment variable. So that those variables can be applied to all jobs instead of maintaining at the job level.

            nkns165 nkns165
            venk8t venkatachalam mani
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: