History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: QB-1617
Type: Bug Bug
Status: Resolved Resolved
Resolution: Won't Fix
Priority: Major Major
Assignee: Robin Shen
Reporter: Noam Manos
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
QuickBuild

Step with Empty Repeat Parameters is not shown in Build Step status

Created: 06/May/13 10:30 AM   Updated: 06/May/13 10:59 PM
Component/s: None
Affects Version/s: 5.0.18
Fix Version/s: None

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown


 Description  « Hide
It took me a while to understand why I have a step with Repeat Parameters (script), that does not shown in the step status after build completed.
If Step has Repeat Parameters script that returns a list of params, the step status is shown at the end, but I would have expected to see
a step status such as "skipped" or "not executed" if the Step has Repeat Parameters script that returned an empty list, such as:

${groovy:
buildModes = "";
if (params.get("TestParameters").matches(".*ARCSound@Debug.*")) {
 buildModes += "debug,";
\}
if (params.get("TestParameters").matches(".*ARCSound@Release.*")) {
 buildModes += "release,";
\}
logger.warn("Build Modes = " + buildModes);
 return buildModes;
}

Only after I added the logger.warn I saw that buildModes was empty, but it is not understood from the step status - where the step is simply missing.

 All   Comments   Work Log   Change History      Sort Order:
Robin Shen [06/May/13 10:59 PM]
This is designed to be so as if you loop through an empty list in any language, nothing will be executed and logged. Also step condition is evaluated in each run of the parameter so there is no chance for QB to log it as "skipped".