mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-10-30 13:05:19 +00:00
[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:
1 parent
f2d470d978
commit
562a7fc2d3
2 files changed
+11
-2
No files matched your search
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user