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

Key: QB-3982
Type: Bug Bug
Status: Closed Closed
Resolution: Won't Fix
Priority: Major Major
Assignee: Robin Shen
Reporter: Bin Wu
Votes: 0
Watchers: 0
Operations

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

[Build Condition]"If specified script evaluates to true" not worked

Created: 07/Jun/23 06:47 AM   Updated: 08/Jun/23 01:24 AM
Component/s: None
Affects Version/s: 13.0.18
Fix Version/s: None

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown
Environment: linux quickbuild 13.0.18


 Description  « Hide
I want to download the 3rd part package into QB, with configure the 'tag' variable to control the version
already create another configure to automation update the 'tag', but when test with "If specified script evaluates to true" on "Build Condition", it always been execute by "Schedule"
I also setup the "Next Build Version" to the "tag"

This my script:
groovy:
last_build = configuration.getLatestFinishedBuild()
 
if ( last_build != null ) {
  return ! (last_build.getVar('tag') == configuration.findVarValue('tag'))
}
 
return true

So I couldn't understand why it can be execute by "Schedule", because the "tag" is not change


 All   Comments   Work Log   Change History      Sort Order:
No work has yet been logged on this issue.