Is it possible to configure buildDiscarder in organizationFolder job type? I could do it in multibranchPipelineJob, but I didn’t find how to do it in organizationFolder.
This is how I did for multibranchPipelineJob
multibranchPipelineJob('my-job') {
branchSources {
branchSource {
strategy {
allBranchesSame {
props {
buildRetention {
buildDiscarder {
strategy {
logRotator {
daysToKeepStr('3')
numToKeepStr('5')
artifactDaysToKeepStr('3')
artifactNumToKeepStr('5')
}
}
}
}
}
}
}
}
}
}
Jenkins version: 2.346.3
JobDSL plugin version: 1.79