1 parent 699efcc commit cdc9317Copy full SHA for cdc9317
1 file changed
Jenkinsfile
@@ -1,10 +1,15 @@
1
// dev branch only: every 30 minutes at night (1:00 - 5:00)
2
String cronSchedule = BRANCH_NAME == 'dev' ? '*/30 1-5 * * *' : ''
3
+String buildsToKeep = '500'
4
5
// https://jenkins.io/doc/book/pipeline/syntax/
6
pipeline {
7
agent any
8
9
+ options {
10
+ buildDiscarder(logRotator(numToKeepStr: buildsToKeep, artifactNumToKeepStr: buildsToKeep))
11
+ }
12
+
13
triggers {
14
upstream(upstreamProjects: "ObjectStore-Linux/${env.BRANCH_NAME.replaceAll("/", "%2F")}",
15
threshold: hudson.model.Result.SUCCESS)
0 commit comments