Hello
The previous version of the Job DSL I was able to do this:
multibranchPipelineJob("xxx-yyyy") {
branchSources {
branchSource {
source {
github {
scanCredentialsId("xxxx")
checkoutCredentialsId("xxxx")
apiUri("")
repoOwner("xxx")
repository("xx-xxx")
buildForkPRHead(false)
buildForkPRMerge(true)
buildOriginBranch(true)
buildOriginBranchWithPR(false)
buildOriginPRHead(false)
buildOriginPRMerge(true)
}
}
strategy {
defaultBranchPropertyStrategy {
props {
noTriggerBranchProperty()
}
}
}
}
}
orphanedItemStrategy {
discardOldItems {
daysToKeep(10)
numToKeep(1000)
}
}
triggers {
periodic(1440)
}
}
However, after the upgrade for 1.65, the branchSource -> source -> github looks like is deprecated and then I need to use the branchSources -> gitHub, but if that I cannot set the defaultBranchPropertyStrategy -> noTriggerBranchProperty
There is a way to set that in the job dsl?
the update code is something like this, I tried to add the strategy but did not work. Also tried the properties -> noTriggerOrganizationFolderProperty with no sucess either.
Any help to get the strategy working again with out downgrade the plugin?
multibranchPipelineJob("xxx-yyy") {
branchSources {
github {
scanCredentialsId("xxxx")
checkoutCredentialsId("xxx")
apiUri("")
repoOwner("xx")
repository("xx-xx")
buildForkPRHead(false)
buildForkPRMerge(true)
buildOriginBranch(true)
buildOriginBranchWithPR(false)
buildOriginPRHead(false)
buildOriginPRMerge(true)
}
}
orphanedItemStrategy {
discardOldItems {
daysToKeep(10)
numToKeep(1000)
}
}
triggers {
periodic(1440)
}
}
thanks so much!