Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

How to modify number of "Days" option for CLASS

I would really like to know if there is an way to modify the number of days option for a class in BF. Currently there is a drop-down with options I need to change that to 60 days but the max number that is available for selection is 45. I need to keep the logs for 60 days and then purge them.

Request your help here.

Thanks.

0 votes



2 answers

Permanent link
I would really like to know if there is an way to modify the number of days option for a class in BF. Currently there is a drop-down with options I need to change that to 60 days but the max number that is available for selection is 45. I need to keep the logs for 60 days and then purge them.

Request your help here.

Thanks.


Hi,

I can't think of a way using the UI, but if you're able to run a script it's possible. With a few modifications for your user/password and class name, the Perl script below can change it.


use strict;

use BuildForge::Services;

my $host = 'localhost';
my $user = 'root';
my $password = 'root';
my $buildClassName = 'Scratch';

my $conn = new BuildForge::Services::Connection($host);
my $token = $conn->authUser($user, $password);

my $buildClass = BuildForge::Services::DBO::BuildClass->findByName($conn, $buildClassName);
die('Could not find build class ' . $buildClassName) unless defined($buildClass);

$buildClass->setPurgeDays(60);
$buildClass = $buildClass->update();

$conn->logout();
$conn->close();


Brent Ulbricht
RTC Build Lead

0 votes


Permanent link
Thanks a lot Brent...It worked..Thanks again :)

0 votes

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details

Question asked: Jul 19 '11, 12:31 p.m.

Question was seen: 3,792 times

Last updated: Jul 19 '11, 12:31 p.m.

Confirmation Cancel Confirm