Project

General

Profile

« Previous | Next » 

Revision 46567

added discard old builds

View differences:

job45.groovy
25 25
               snapshotDependencies(true)
26 26
            }
27 27
            jdk('Java 8')
28
            goals(mvnGoal)        
28
            goals(mvnGoal)  
29
            logRotator {
30
                numToKeep(2)
31
                artifactNumToKeep(1)
32
            }      
29 33
            publishers {
30 34
                deployArtifacts {
31 35
                    repositoryUrl (repositoryURL)
32 36
                    repositoryId (myrepositoryId)
33 37
                    uniqueVersion (true)
34 38
                    evenIfUnstable (true)
35
                    }
36
                    publishBuild {
37
                        discardOldBuilds(2, 2)
38
                    }
39
                    }                    
39 40
                }   
40 41
            }
41 42
        }

Also available in: Unified diff