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

Key: QB-684
Type: Improvement Improvement
Status: Resolved Resolved
Resolution: Fixed
Priority: Minor Minor
Assignee: Robin Shen
Reporter: Roger Perkins
Votes: 0
Watchers: 0
Operations

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

Extend built in condition logic to handle "not" logic

Created: 13/Oct/10 04:43 PM   Updated: 27/Dec/12 02:39 PM
Component/s: None
Affects Version/s: 3.0.12
Fix Version/s: None

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


 Description  « Hide
I was going to convert some script to use the built-in human readable condition options but realised there's no way to say "variable != true" right now (as an example). I'm not sure if it would be best to add "!=" versions of the different conditions, the other alternative would be to have some sort of check-box to invert the logic (but that could get quite confusing). Ideally I'd like to get rid of as much custom script as possible to make it easy to understand for people looking at it.

An example of what I wanted to convert:

(current.parent==null || !current.parent.anyChildFailed) && (vars.get("JAM_DOING_CI")==null || vars.get("JAM_DOING_CI").asBoolean() != true)

 All   Comments   Work Log   Change History      Sort Order:
There are no comments yet on this issue.