Skip to content

Commit

Permalink
[FIXED JENKINS-33019] Use FQN for BuildDiscarderProperty
Browse files Browse the repository at this point in the history
BuildDiscarderProperty was moved to core from Pipeline, but not in
time for the 1.642 LTS line. So you need to explicitly use the fully
qualified class name when using it as long as you might be running on
1.642 or earlier LTSes.
  • Loading branch information
abayer committed Feb 18, 2016
1 parent 6420c8b commit a39a56f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Jenkinsfile
Expand Up @@ -12,9 +12,9 @@
def runTests = true

// Only keep the 10 most recent builds.
properties([[$class: 'BuildDiscarderProperty', strategy: [$class: 'LogRotator',
numToKeepStr: '50',
artifactNumToKeepStr: '20']]])
properties([[$class: 'jenkins.model.BuildDiscarderProperty', strategy: [$class: 'LogRotator',
numToKeepStr: '50',
artifactNumToKeepStr: '20']]])

String packagingBranch = (binding.hasVariable('packagingBranch')) ? packagingBranch : 'master'

Expand Down

0 comments on commit a39a56f

Please sign in to comment.