Hi, there is groovy script as answer
def subProjects = new ArrayList()
def triggersBuilder = build.getProject().getBuilders()
triggersBuilder.each { trigger ->
if(trigger instanceof
hudson.plugins.parameterizedtrigger.TriggerBuilder) {
def blockableBuildTriggerConfigs = trigger.getConfigs()
blockableBuildTriggerConfigs.each { config ->
if(config.getBlock() != null) {
subProjects.add(config.getProjectList(null))
}
}
}
}
subProjects.each { project -> println(project) }
--
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/96e9d4ab-8d06-444a-a09d-abde7b4b6ba6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.