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

Key: QB-1424
Type: Bug Bug
Status: Resolved Resolved
Resolution: Won't Fix
Priority: Minor Minor
Assignee: Robin Shen
Reporter: Marek Baczynski
Votes: 0
Watchers: 0
Operations

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

Composite sequential step repeat parameters are evaluated too early

Created: 19/Oct/12 02:53 PM   Updated: 19/Oct/12 10:40 PM
Component/s: None
Affects Version/s: 4.0.68
Fix Version/s: None

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown
Environment: Windows


 Description  « Hide
I have a composite step that needs to do something a couple of times, let's say with a parameter p=A, p=B and p=C. Sometimes during execution of a build, I need to also add p=D dynamically. I store the list in a variable, say 'list_p=A,B,C' and when I need D, I simply set the var to 'list_p=A,B,C,D'. The problem is, the composite step doesn't notice this change. It looks like repeat parameters are evaluated at the start of executing of configuration and not at the latest possible time, ie. when the composite step starts executing.

 All   Comments   Work Log   Change History      Sort Order:
Robin Shen [19/Oct/12 10:40 PM]
This is by design, the repeat parameters are evaluated before evaluating step condition since the step condition might need to check if a certain iteration should be skipped. You can work around this by placing the existing repeated step inside another container step and set variable value in that container step instead before executing the repeated step.

Change by Robin Shen [19/Oct/12 10:40 PM]
Field Original Value New Value
Status Open [ 1 ] Resolved [ 5 ]
Resolution Won't Fix [ 2 ]