<< Back to previous view

[QB-1777] Reset version number in Next Build Version under General Setting
Created: 12/Sep/13  Updated: 23/Sep/13

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

Type: Improvement Priority: Major
Reporter: Madhu Kumar Assigned To: Robin Shen
Resolution: Unresolved Votes: 0
Remaining Estimate: Unknown Time Spent: Unknown
Original Estimate: Unknown
Environment: OS :

RHEL 5.x


 Description   
Hi Robin,

Is there any option in QB to reset the version number in Next Build Version under General Setting tab.

Could be resetting the last digit of the version or reset the version itself completely .

Thanks,
Madhu

 Comments   
Comment by Madhu Kumar [ 19/Sep/13 07:22 AM ]
Hi Robin,

Any updates on the mentioned issue ?

Thanks,
Madhu
Comment by Robin Shen [ 20/Sep/13 12:11 AM ]
I am not very certain about this requirement, does not QB already have the ability to let you specify next build version to whatever value you like in general setting page?
Comment by Madhu Kumar [ 20/Sep/13 12:33 PM ]
Hi Robin,

We have specified the next build version in general setting page to something like 1.x.x, and the bug version gets incremented every time build happens and after certain period it reaches to digit something like 1.x.100000, so we need to reset the bug version once it reaches to certain value say like 1.x.1000 (i.e. 4 digit bug version). So I was looking for a option in QB either a groovy script or something like to reset the version once it reaches 4 digit bug version number.

Let me know how can I achieve this.

Thanks,
Madhu
Comment by Robin Shen [ 20/Sep/13 11:25 PM ]
This is already possible by:
1. Define a configuration variable say bugNumber with initial value to be 1.
2. Modify next build version to be:
1.x.${groovy:
def bugNumber=vars.get("bugNumber").asInt() + 1;
if (bugNumber > 9999)
  bugNumber = 1;
vars.get("bugNumber").setValue(bugNumber);
return bugNumber;
}
Comment by Madhu Kumar [ 23/Sep/13 12:05 PM ]
It worked and I was able to reset bugversion.

Thanks Robin.

Generated at Fri May 17 18:38:44 UTC 2024 using JIRA 189.