<< Back to previous view

[QB-1719] Rebuild the same build rule/configuration
Created: 24/Jul/13  Updated: 26/Jul/13

Status: Open
Project: QuickBuild
Component/s: None
Affects Version/s: 4.0.87
Fix Version/s: None

Type: Bug Priority: Major
Reporter: Rajaganapathy Yuvarajan Assigned To: Robin Shen
Resolution: Unresolved Votes: 0
Remaining Estimate: Unknown Time Spent: Unknown
Original Estimate: Unknown


 Description   
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.


 Comments   
Comment by 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.
Comment by 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.
Comment by 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.
Generated at Tue May 21 14:45:43 UTC 2024 using JIRA 189.