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

Key: QB-1719
Type: Bug Bug
Status: Open Open
Priority: Major Major
Assignee: Robin Shen
Reporter: Rajaganapathy Yuvarajan
Votes: 0
Watchers: 0
Operations

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

Rebuild the same build rule/configuration

Created: 24/Jul/13 10:45 AM   Updated: 26/Jul/13 12:21 AM
Component/s: None
Affects Version/s: 4.0.87
Fix Version/s: None

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


 Description  « Hide
I wanted to rerun the same Build configuration with ReBuild option. Also in rebuild , variable values to be changed in some cases.

But when i enable rebuild in Promotion , Variable values always taken from the Latest Build. Its not taking from the promoted(ReBuild) configuration.

I have used ${build.getVarValue("myvar")} to get variable value.

Please suggest how to take promoted build variable values.


 All   Comments   Work Log   Change History      Sort Order:
Robin Shen [24/Jul/13 11:57 PM]
So while in rebuild, for variables, you do not want to use value recorded in old build, but instead to use variables in configuration itself? If so, you may remove the variable definition in promotion definition.

Rajaganapathy Yuvarajan [25/Jul/13 05:32 AM]
We want to use the same configuraion & variable from the Old Build record. But its not taking proper variable record from the old Build.
We have used "${build.getVarValue("Myvar")}" to get the all the variable record from the Old Build. Please update what basis its taking record from the Old Build while promoting.

Lets say our case

Configuraion1 ---> its build based on diff models defined in Variable.For examble Variable contain A,B,C models. Three models built with this configuration.
If i rebuild "C" model , its not taking proper model from the old builds variable. Its taking very random like A , B , C from the Old Builds.
we used to get the model variable like this from the OLD Build "${build.getVarValue("MODEL")}"

Also for SCM cases , we are trying to change the P4 CL variable record for rebuild if any new CL comes.

Robin Shen [26/Jul/13 12:21 AM]
Your comments seems to be very specific to your environment, which is hard for me to understand without knowledge of your environment. What model here means? Is this another build triggered by Configuration1 via the "trigger build step"? By rebuilding "C" model, do you mean to hit the "rebuild" promotion button (assumes you've defined that promotion) for some triggered child build? Without knowing details of this, it is difficult for me to help.