How can I configure buildRetention in organizationFolder job type
using JobDSL plugin? Is it supported?
I could easily do it in a multibranchPipelineJob but I didn't find a way to
do it in organizationFolder.
This is how I did in multibranchPipelineJob:
multibranchPipelineJob('my-job') {
branchSources {
branchSource {
strategy {
allBranchesSame {
props {
buildRetention {
buildDiscarder {
strategy {
logRotator {
daysToKeepStr('3')
numToKeepStr('5')
artifactDaysToKeepStr('3')
artifactNumToKeepStr('5')
}
}
}
}
}
}
}
}
}
}
My env is:
Jenkins version: 2.346.3
JobDSL plugin version: 1.79
--
You received this message because you are subscribed to the Google Groups
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/jenkinsci-users/d3caa2e9-c88d-4cfc-8f4a-bd89af4f4e4cn%40googlegroups.com.