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

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

[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:
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:
Robin Shen [07/Jun/23 12:11 PM]
Below statement will always evaluates to false:

last_build.getVar('tag') == configuration.findVarValue('tag')

As you are comparing variable with viarable value. Try this instead:
last_build.getVarValue('tag') == configuration.findVarValue('tag')

Bin Wu [08/Jun/23 01:22 AM]
thank you for point this