Skip to content

Commit

Permalink
Keep last 15 builds in Jenkins, but only last build's artifacts
Browse files Browse the repository at this point in the history
  • Loading branch information
sgtcoolguy committed Jul 17, 2018
1 parent ea5fbd1 commit bebb6b2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Jenkinsfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#! groovy
// Keep logs/reports/etc of last 3 builds, only keep build artifacts of last build
properties([buildDiscarder(logRotator(numToKeepStr: '3', artifactNumToKeepStr: '1'))])
// Keep logs/reports/etc of last 15 builds, only keep build artifacts of last build
properties([buildDiscarder(logRotator(numToKeepStr: '15', artifactNumToKeepStr: '1'))])
// Set after copying upstream artifacts
// Tells maven where to assume a p2 repo holding the sftp libraries would be
def sftpURL = ''
Expand Down

0 comments on commit bebb6b2

Please sign in to comment.