<< Back to previous view

[QB-1306] Provide a built-in repeat parameter values definition for files that match a standard file pattern
Created: 29/Jun/12  Updated: 27/Feb/13

Status: Resolved
Project: QuickBuild
Component/s: None
Affects Version/s: None
Fix Version/s: 5.0.8

Type: New Feature Priority: Major
Reporter: Justin Georgeson Assigned To: Unassigned
Resolution: Fixed Votes: 0
Remaining Estimate: Unknown Time Spent: Unknown
Original Estimate: Unknown
Environment: 3.1.67


 Description   
For steps that can process multiple files, sometimes the desire is to process the files individually. For example see QB-1305. A workaround for QB-1305 is to setup a repeating parameter using groovy script below to process the files individually rather than in aggregate. Please add a pre-defined value definition that takes the common 'Source Directory' and 'Files to process' fields and returns the list that we can loop over.

${groovy:
java.io.File[] files = util.getFile(vars.getValue("aggregatorPomDir")).listFiles();
java.util.List<String> list = new java.util.ArrayList<String>();
for (java.io.File each : files) {
    if (each.isDirectory() && each.getName().startsWith("com.lgc"))
            list.add(each.getName());
\}

return util.join(list);
}


Generated at Sat Jul 12 12:18:45 UTC 2025 using JIRA 189.