Key: |
QB-3982
|
Type: |
Bug
|
Status: |
Closed
|
Resolution: |
Won't Fix
|
Priority: |
Major
|
Assignee: |
Robin Shen
|
Reporter: |
Bin Wu
|
Votes: |
0
|
Watchers: |
0
|
If you were logged in you would be able to see more operations.
|
|
|
QuickBuild
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
|
|
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
|
Description
|
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
|
Show » |
|
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')