[JENKINS-36282] Add support to cc.xml for exporting jobs in folders recursively (#3060)

* Add support for exporting jobs in folders recursively

* Convert cc.xml into a Groovy view

* Revert "Convert cc.xml into a Groovy view"

This reverts commit 990ec3ebfb.

* Move logic in jelly view to static method
This commit is contained in:
Devin Nusbaum authored and Oleg Nenashev committed 2017-10-13 11:40:56 +02:00
1 parent f2d470d978
commit 562a7fc2d3
2 files changed
+11 -2

No files matched your search

+9
View File
@@ -2043,4 +2043,13 @@ public class Functions {
}
}
@Restricted(NoExternalUse.class) // for cc.xml.jelly
public static Collection<TopLevelItem> getCCItems(View v) {
if (Stapler.getCurrentRequest().getParameter("recursive") != null) {
return Items.getAllItems(v.getOwner().getItemGroup(), TopLevelItem.class);
} else {
return v.getItems();
}
}
}